Package de.hybris.platform.jalo.security
Class PrincipalGroup
- java.lang.Object
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable
- Direct Known Subclasses:
GeneratedUserGroup
public abstract class PrincipalGroup extends GeneratedPrincipalGroup
This class describes groups of principals. Like principals such a group can have permissions assigned. Each member of a principal group automaticaly owns all group rights as well.
If you like to avoid this for one right and one member you have to assign this right to this member negatively !- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.jalo.security.GeneratedPrincipalGroup
DEFAULT_INITIAL_ATTRIBUTES, LOCNAME, MAXBRUTEFORCELOGINATTEMPTS, MEMBERS, PRINCIPALGROUPRELATION_MARKMODIFIED, PRINCIPALGROUPRELATION_SRC_ORDERED, PRINCIPALGROUPRELATION_TGT_ORDERED
-
Fields inherited from class de.hybris.platform.jalo.security.Principal
ALLGROUPS, ALLSEARCHRESTRICTIONS, DISPLAYNAME, PRINCIPAL_GROUP_RELATION_NAME
-
Fields inherited from class de.hybris.platform.jalo.security.GeneratedPrincipal
DESCRIPTION, GROUPS, NAME, SEARCHRESTRICTIONS, SEARCHRESTRICTIONSHANDLER, UID
-
Fields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLED
-
Fields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPE
-
Fields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant
-
-
Constructor Summary
Constructors Constructor Description PrincipalGroup()
-
Method Summary
-
Methods inherited from class de.hybris.platform.jalo.security.GeneratedPrincipalGroup
addToMembers, addToMembers, getAllLocName, getAllLocName, getDefaultAttributeModes, getLocName, getLocName, getMaxBruteForceLoginAttempts, getMaxBruteForceLoginAttempts, getMaxBruteForceLoginAttemptsAsPrimitive, getMaxBruteForceLoginAttemptsAsPrimitive, getMembers, getMembersCount, getMembersCount, isMarkModifiedDisabled, removeFromMembers, removeFromMembers, setAllLocName, setAllLocName, setLocName, setLocName, setMaxBruteForceLoginAttempts, setMaxBruteForceLoginAttempts, setMaxBruteForceLoginAttempts, setMaxBruteForceLoginAttempts, setMembers, setMembers
-
Methods inherited from class de.hybris.platform.jalo.security.Principal
addGlobalNegativePermission, addGlobalPermission, addGlobalPermissions, addGlobalPositivePermission, checkConsistencyUid, checkGlobalPermission, checkOwnGlobalPermission, checkSystemPrincipal, clearGlobalPermission, clearGlobalPermissions, getAllDisplayName, getAllGlobalNegativePermissions, getAllGlobalPositivePermissions, getAllGroups, getAllGroups, getAllSearchRestrictions, getAllSearchRestrictions, getDisplayName, getGlobalNegativePermissions, getGlobalPermissions, getGlobalPositivePermissions, getGroups, getItemPermissionsMap, getUid, getUID, isAdmin, isMemberOf, isMemberOf, remove, removeFromGroup, setItemPermissionsByMap, setUID, toString
-
Methods inherited from class de.hybris.platform.jalo.security.GeneratedPrincipal
addToGroups, getDescription, getDescription, getGroups, getGroupsCount, getGroupsCount, getName, getName, getSearchRestrictions, getSearchRestrictions, getUid, removeFromGroups, removeFromGroups, setDescription, setDescription, setGroups, setName, setName, setUid, setUid
-
Methods inherited from class de.hybris.platform.jalo.GenericItem
createItem, getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, setRelatedItems
-
Methods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedProperty
-
Methods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setProperty
-
Methods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, useTA, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Method Detail
-
setMembers
@Deprecated protected void setMembers(SessionContext ctx, java.util.Collection newMembers) throws ConsistencyCheckException
Deprecated.since ages - useGeneratedPrincipalGroup.setMembers(SessionContext, Set)instead- Throws:
ConsistencyCheckException
-
getMembers
public java.util.Set<Principal> getMembers(SessionContext ctx)
The group members.- Overrides:
getMembersin classGeneratedPrincipalGroup- Parameters:
ctx- can be used for cached access of this set- Returns:
- the members
-
addMember
@Deprecated public boolean addMember(Principal p)
Deprecated.since ages - useGeneratedPrincipalGroup.addToMembers(Principal)insteadAdds a new member.- Parameters:
p-- Returns:
- true if this principal was not present before
-
addMember
@Deprecated public boolean addMember(SessionContext ctx, Principal p)
Deprecated.since ages - useGeneratedPrincipalGroup.addToMembers(SessionContext, Principal)insteadAdds a new member.- Parameters:
ctx- can be used for cached access of the member setp-- Returns:
- true if this principal was not present before
-
addToGroups
public void addToGroups(SessionContext ctx, PrincipalGroup group)
Description copied from class:GeneratedPrincipalGenerated method - Addsvalueto groups.- Overrides:
addToGroupsin classGeneratedPrincipalgroup- the item to add to groups
-
addToGroup
@Deprecated public boolean addToGroup(PrincipalGroup group)
Deprecated.since ages - useaddToGroups(SessionContext, PrincipalGroup)insteadAdds this group to a super group. This method checks cyclic dependencies to avoid self containing groups.- Overrides:
addToGroupin classPrincipal- Returns:
- true if the principal is not already member of the group
- Throws:
JaloInvalidParameterException- in case the given super group is the same or a subgroup of this group- See Also:
Principal.addToGroup(de.hybris.platform.jalo.security.PrincipalGroup)
-
setGroups
public void setGroups(SessionContext ctx, java.util.Set groups)
Changes the group memberships of this group. This method checks cyclic dependencies to avoid self containing groups.- Overrides:
setGroupsin classPrincipalgroups- - the groups the user should be member in- See Also:
Principal.setGroups(de.hybris.platform.jalo.SessionContext, java.util.Set)
-
removeMember
@Deprecated public boolean removeMember(Principal p) throws ConsistencyCheckException
Deprecated.since ages - useGeneratedPrincipalGroup.removeFromMembers(Principal)insteadRemoves a member.- Parameters:
p-- Returns:
- truie if this principal was in this group before
- Throws:
ConsistencyCheckException
-
removeMember
@Deprecated public boolean removeMember(SessionContext ctx, Principal p) throws ConsistencyCheckException
Deprecated.since ages - useGeneratedPrincipalGroup.removeFromMembers(SessionContext, Principal)insteadRemoves a member.- Parameters:
ctx- can be used for cached access of the member setp-- Returns:
- true if this principal was in this group before
- Throws:
ConsistencyCheckException
-
containsMember
@Deprecated public boolean containsMember(Principal p)
Deprecated.since ages - useUserService.isMemberOfGroup(UserModel, UserGroupModel, boolean)- Parameters:
p-- Returns:
- true if the given principal is member of this group.
-
containsMember
@Deprecated public boolean containsMember(SessionContext ctx, Principal p)
Deprecated.since ages - useUserService.isMemberOfGroup(UserModel, UserGroupModel, boolean)- Parameters:
ctx- can be used for cached access of the member setp-- Returns:
- true if the given principal is member of this group.
-
getDisplayName
@Deprecated public java.lang.String getDisplayName(SessionContext ctx)
Deprecated.since ages- Specified by:
getDisplayNamein classPrincipal- Returns:
- the displayName
-
getAllDisplayName
@Deprecated public java.util.Map<Language,java.lang.String> getAllDisplayName(SessionContext ctx)
Deprecated.since agesDescription copied from class:PrincipalOld jalo generated method from GeneratedPrincipal - Getter of thePrincipal.displayNamejalo localized attribute.- Specified by:
getAllDisplayNamein classPrincipal- Returns:
- the localized displayName
-
getAllLocNames
@Deprecated public java.util.Map getAllLocNames(SessionContext ctx)
Deprecated.since ages - usegetAllLocNames(SessionContext)instead
-
setAllLocNames
@Deprecated public void setAllLocNames(SessionContext ctx, java.util.Map names)
Deprecated.since ages - usesetAllLocNames(SessionContext, Map)instead
-
-