@Entity public abstract class BasicGroup extends ConfigurationEntity implements ProductOwner, DefinesNetwork
| Modifier and Type | Field and Description |
|---|---|
protected AdminGroupType |
adminType
This represents the admin group type of a group.
|
protected java.lang.Boolean |
enabled
This represents if a group is enabled.
|
| Constructor and Description |
|---|
BasicGroup() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addProduct(Product product) |
int |
compareTo(NamedEntity o) |
Configuration |
getConfiguration() |
DataTranslationType |
getDataTranslationType()
If this entity allows data translation, should return the translation type
|
abstract BasicGroupNature |
getNature() |
Network |
getNetwork()
Returns the network this entity belongs to
|
java.util.Set<Product> |
getProducts() |
boolean |
removeProduct(Product product) |
void |
setConfiguration(Configuration configuration) |
void |
setNetwork(Network network) |
void |
setProducts(java.util.Set<Product> products) |
getDescription, getInternalName, setDescription, setInternalName, toShortString, toStringgetName, getNames, setNamegetVersionisGlobalclone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransientfinalize, getClass, notify, notifyAll, wait, wait, waitgetAllProductsmatchesprotected java.lang.Boolean enabled
Group but we
put it here so we can make (DB) queries simpler.
Here we have only the property the corresponding get/set methods are in the proper subclass.protected AdminGroupType adminType
AdminGroup but we put it here so we can make (DB) queries simpler.
Here we have only the property the corresponding get/set methods are in the proper subclass.public boolean addProduct(Product product)
addProduct in interface ProductOwnerpublic int compareTo(NamedEntity o)
compareTo in interface java.lang.Comparable<NamedEntity>compareTo in class NamedEntitypublic Configuration getConfiguration()
public DataTranslationType getDataTranslationType()
BaseEntitygetDataTranslationType in class BaseEntitypublic abstract BasicGroupNature getNature()
public Network getNetwork()
NetworkedEntitygetNetwork in interface ProductOwnergetNetwork in class NetworkedEntitypublic java.util.Set<Product> getProducts()
getProducts in interface ProductOwnerpublic boolean removeProduct(Product product)
removeProduct in interface ProductOwnerpublic void setConfiguration(Configuration configuration)
public void setNetwork(Network network)
setNetwork in interface DefinesNetworkpublic void setProducts(java.util.Set<Product> products)