Package org.cyclos.entities.users
Class BasicGroup
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasNetwork,ProcessableForProxying,DefinesNetwork,ProductOwner,IEntity,IInternalNamedEntity,INamedEntity
@Entity public abstract class BasicGroup extends ConfigurationEntity implements ProductOwner, DefinesNetwork
Basic class for groups that have basic settings, like password length, password policy and so on.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description BasicGroup()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(NamedEntity o)ConfigurationgetConfiguration()DataTranslationTypegetDataTranslationType()If this entity allows data translation, should return the translation typeStringgetFullName()abstract BasicGroupNaturegetNature()NetworkgetNetwork()Returns the network this entity belongs toProductOwnergetNextLevelProductOwner()Returns a possibly null next-level ownerSet<Product>getPhysicalProducts()Returns the persistent and attached products collection that can be modified to cascadeSortedSet<Long>getProductIds()Returns the redundant product ids directly assigned to this ownerSet<Product>getProducts()Returns all products directly assigned to this ownervoidsetConfiguration(Configuration configuration)voidsetNetwork(Network network)voidsetProducts(Set<Product> products)voidupdateProductIds(SortedSet<Long> productIds)Sets the redundant comma-separated list of product ids directly assigned to this owner-
Methods inherited from class org.cyclos.entities.ConfigurationEntity
getDescription, getInternalName, setDescription, setInternalName, toShortString, toString
-
Methods inherited from class org.cyclos.entities.NamedEntity
getName, getNames, setName
-
Methods inherited from class org.cyclos.entities.BaseEntity
getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.HasNetwork
isGlobal
-
Methods inherited from interface org.cyclos.model.IInternalNamedEntity
matches
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
Methods inherited from interface org.cyclos.entities.users.ProductOwner
addProduct, getAllProductIds, removeProduct
-
-
-
-
Field Detail
-
enabled
protected Boolean enabled
This represents if a group is enabled. Indeed it only belongs to some sub-classes, to know:Groupbut 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.
-
adminType
protected AdminGroupType adminType
This represents the admin group type of a group. Indeed it only belongs to some sub-classes, to know:AdminGroupbut 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.
-
-
Method Detail
-
compareTo
public int compareTo(NamedEntity o)
- Specified by:
compareToin interfaceComparable<NamedEntity>- Overrides:
compareToin classNamedEntity
-
getConfiguration
public Configuration getConfiguration()
-
getDataTranslationType
public DataTranslationType getDataTranslationType()
Description copied from class:BaseEntityIf this entity allows data translation, should return the translation type- Overrides:
getDataTranslationTypein classBaseEntity
-
getFullName
public String getFullName()
-
getNature
public abstract BasicGroupNature getNature()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getNextLevelProductOwner
public ProductOwner getNextLevelProductOwner()
Description copied from interface:ProductOwnerReturns a possibly null next-level owner- Specified by:
getNextLevelProductOwnerin interfaceProductOwner
-
getPhysicalProducts
public Set<Product> getPhysicalProducts()
Description copied from interface:ProductOwnerReturns the persistent and attached products collection that can be modified to cascade- Specified by:
getPhysicalProductsin interfaceProductOwner
-
getProductIds
public SortedSet<Long> getProductIds()
Description copied from interface:ProductOwnerReturns the redundant product ids directly assigned to this owner- Specified by:
getProductIdsin interfaceProductOwner
-
getProducts
public Set<Product> getProducts()
Description copied from interface:ProductOwnerReturns all products directly assigned to this owner- Specified by:
getProductsin interfaceProductOwner
-
setConfiguration
public void setConfiguration(Configuration configuration)
-
setNetwork
public void setNetwork(Network network)
- Specified by:
setNetworkin interfaceDefinesNetwork
-
updateProductIds
public void updateProductIds(SortedSet<Long> productIds)
Description copied from interface:ProductOwnerSets the redundant comma-separated list of product ids directly assigned to this owner- Specified by:
updateProductIdsin interfaceProductOwner
-
-