Package de.hybris.platform.jalo.security
Class PrincipalGroup
java.lang.Object
- All Implemented Interfaces:
Serializable,Comparable
- Direct Known Subclasses:
GeneratedUserGroup
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 !
If you like to avoid this for one right and one member you have to assign this right to this member negatively !
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImplNested 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_ORDEREDFields inherited from class de.hybris.platform.jalo.security.Principal
ALLGROUPS, ALLSEARCHRESTRICTIONS, DISPLAYNAME, PRINCIPAL_GROUP_RELATION_NAMEFields inherited from class de.hybris.platform.jalo.security.GeneratedPrincipal
DESCRIPTION, GROUPS, NAME, SEARCHRESTRICTIONS, SEARCHRESTRICTIONSHANDLER, UIDFields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLEDFields 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, TYPEFields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.booleanaddMember(SessionContext ctx, Principal p) Deprecated.since ages - useGeneratedPrincipalGroup.addToMembers(SessionContext, Principal)insteadbooleanaddToGroup(PrincipalGroup group) Deprecated.since ages - useaddToGroups(SessionContext, PrincipalGroup)insteadvoidaddToGroups(SessionContext ctx, PrincipalGroup group) Generated method - Addsvalueto groups.booleanDeprecated.since ages - useUserService.isMemberOfGroup(UserModel, UserGroupModel, boolean)booleancontainsMember(SessionContext ctx, Principal p) Deprecated.since ages - useUserService.isMemberOfGroup(UserModel, UserGroupModel, boolean)Deprecated.since agesDeprecated.since ages - usegetAllLocNames(SessionContext)insteadDeprecated.since agesgetMembers(SessionContext ctx) The group members.booleanDeprecated.since ages - useGeneratedPrincipalGroup.removeFromMembers(Principal)insteadbooleanremoveMember(SessionContext ctx, Principal p) Deprecated.since ages - useGeneratedPrincipalGroup.removeFromMembers(SessionContext, Principal)insteadvoidsetAllLocNames(SessionContext ctx, Map names) Deprecated.since ages - usesetAllLocNames(SessionContext, Map)insteadvoidsetGroups(SessionContext ctx, Set groups) Changes the group memberships of this group.protected voidsetMembers(SessionContext ctx, Collection newMembers) Deprecated.since ages - usesetMembers(SessionContext, Set)insteadMethods 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, setMembersMethods 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, toStringMethods 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, setUidMethods inherited from class de.hybris.platform.jalo.GenericItem
createItem, getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, getRelatedItems, setRelatedItemsMethods 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, setLocalizedPropertyMethods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyMethods 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, getPartOfRemovedSessionMarker, 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, suppressRelation, useTA, writeReplaceMethods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
Constructor Details
-
PrincipalGroup
public PrincipalGroup()
-
-
Method Details
-
setMembers
@Deprecated(since="ages", forRemoval=false) protected void setMembers(SessionContext ctx, Collection newMembers) throws ConsistencyCheckException Deprecated.since ages - usesetMembers(SessionContext, Set)instead- Throws:
ConsistencyCheckException
-
getMembers
The group members.- Overrides:
getMembersin classGeneratedPrincipalGroup- Parameters:
ctx- can be used for cached access of this set- Returns:
- the members
-
addMember
Deprecated.since ages - useGeneratedPrincipalGroup.addToMembers(Principal)insteadAdds a new member.- Parameters:
p-- Returns:
- true if this principal was not present before
-
addMember
@Deprecated(since="ages", forRemoval=false) 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
Description copied from class:GeneratedPrincipalGenerated method - Addsvalueto groups.- Overrides:
addToGroupsin classGeneratedPrincipalgroup- the item to add to groups
-
addToGroup
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:
-
setGroups
Changes the group memberships of this group. This method checks cyclic dependencies to avoid self containing groups. -
removeMember
@Deprecated(since="ages", forRemoval=false) 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(since="ages", forRemoval=false) 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.since ages - useUserService.isMemberOfGroup(UserModel, UserGroupModel, boolean)- Parameters:
p-- Returns:
- true if the given principal is member of this group.
-
containsMember
@Deprecated(since="ages", forRemoval=false) 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.since ages- Specified by:
getDisplayNamein classPrincipal- Returns:
- the displayName
-
getAllDisplayName
@Deprecated(since="ages", forRemoval=false) public Map<Language,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.since ages - usegetAllLocNames(SessionContext)instead -
setAllLocNames
@Deprecated(since="ages", forRemoval=false) public void setAllLocNames(SessionContext ctx, Map names) Deprecated.since ages - usesetAllLocNames(SessionContext, Map)instead
-
GeneratedPrincipalGroup.addToMembers(Principal)instead