public abstract class Principal extends GeneratedPrincipal
UserRights on one Item, which can be checked by the
AccessManager.GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALLGROUPS
Deprecated.
since ages - Old Jalo attribute that is now dynamic.
|
static java.lang.String |
ALLSEARCHRESTRICTIONS
Deprecated.
since ages - it is a dynamic attribute now
|
static java.lang.String |
DISPLAYNAME
Deprecated.
since ages - it is a dynamic attribute now
|
static java.lang.String |
PRINCIPAL_GROUP_RELATION_NAME
Deprecated.
since ages - use instead CoreConstants.Relations.PRINCIPALGROUPRELATION
|
DEFAULT_INITIAL_ATTRIBUTES, DESCRIPTION, GROUPS, NAME, PRINCIPALGROUPRELATION_MARKMODIFIED, PRINCIPALGROUPRELATION_SRC_ORDERED, PRINCIPALGROUPRELATION_TGT_ORDERED, SEARCHRESTRICTIONS, SEARCHRESTRICTIONSHANDLER, UIDLANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
Principal() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalNegativePermission(UserRight permission)
Deprecated.
|
void |
addGlobalPermission(UserRight permission,
boolean deny)
Deprecated.
|
boolean |
addGlobalPermissions(java.util.Collection<PermissionContainer> permissions)
Deprecated.
since ages - use
PermissionManagementService.addGlobalPermissions(Collection) |
void |
addGlobalPositivePermission(UserRight permission)
Deprecated.
|
boolean |
addToGroup(PrincipalGroup group)
Deprecated.
since ages - use
GeneratedPrincipal.addToGroups(SessionContext, PrincipalGroup) instead |
protected void |
checkConsistencyUid(java.lang.String uid,
java.lang.String message,
java.lang.String composedTypeCode) |
boolean |
checkGlobalPermission(UserRight right)
Deprecated.
|
int |
checkOwnGlobalPermission(PK userRightPK)
Deprecated.
since ages - use
(PrincipalModel, String) |
abstract void |
checkSystemPrincipal() |
void |
clearGlobalPermission(UserRight permission)
Deprecated.
|
boolean |
clearGlobalPermissions(java.util.Collection<PermissionContainer> permissions)
Deprecated.
since ages - use
PermissionManagementService.removeGlobalPermissions(Collection) |
java.util.Map<Language,java.lang.String> |
getAllDisplayName()
Deprecated.
since ages
|
abstract java.util.Map<Language,java.lang.String> |
getAllDisplayName(SessionContext ctx)
Deprecated.
since ages
|
java.util.Collection |
getAllGlobalNegativePermissions()
Gets all negative permissions of this principal including all negative permissions of groups the principal is
member of.
|
java.util.Collection |
getAllGlobalPositivePermissions()
Gets all positive permissions of this principal including all positive permissions of groups the principal is
member of.
|
java.util.Set<PrincipalGroup> |
getAllGroups() |
java.util.Set<PrincipalGroup> |
getAllGroups(SessionContext ctx)
Gets all groups this principal is member of ( transitive ! ).
|
java.util.Collection<SearchRestriction> |
getAllSearchRestrictions()
Gets all search restrictions of this principal.
|
java.util.Collection<SearchRestriction> |
getAllSearchRestrictions(SessionContext ctx)
Gets all search restrictions of this principal.
|
java.lang.String |
getDisplayName()
Deprecated.
since ages - use
PrincipalModel.getDisplayName()
Old jalo generated method from GeneratedPrincipal - Getter of the
Principal.displayName jalo localized attribute. |
abstract java.lang.String |
getDisplayName(SessionContext ctx)
Deprecated.
since ages - use
PrincipalModel.getDisplayName()
Old jalo generated method from GeneratedPrincipal - Getter of the
Principal.displayName jalo localized attribute. |
java.util.Set |
getGlobalNegativePermissions()
Gets all negative permissions of this principal.
|
java.util.Set |
getGlobalPermissions(boolean negative)
Deprecated.
|
java.util.Set |
getGlobalPositivePermissions()
Gets all positive permissions of this principal.
|
java.util.Set<PrincipalGroup> |
getGroups(SessionContext ctx)
Gets all groups which this user belongs to.
|
java.util.Map |
getItemPermissionsMap(java.util.List userRights)
Returns all stored permissions for this principal and a given list of user rights.
|
java.lang.String |
getUID()
Deprecated.
since ages - use
GeneratedPrincipal.getUid() instead |
java.lang.String |
getUid(SessionContext ctx)
Generated method - Getter of the
Principal.uid attribute. |
abstract boolean |
isAdmin()
Checks whether the Principal is the admin user.
|
boolean |
isMemberOf(PrincipalGroup g)
Deprecated.
since ages - use
UserService.isMemberOfGroup(UserModel, UserGroupModel, boolean) |
boolean |
isMemberOf(PrincipalGroup grp,
boolean includingSupergroups)
Deprecated.
|
void |
remove(SessionContext ctx)
SLDSafe - previously there was an intentional bug that deleted all the addresses after User was deleted - even
those that are duplicates with the original field set.
|
boolean |
removeFromGroup(PrincipalGroup group)
Deprecated.
since ages - use
GeneratedPrincipal.removeFromGroups(SessionContext, PrincipalGroup) instead |
void |
setGroups(SessionContext ctx,
java.util.Set groups)
Sets the users memberships in the given groups.
|
void |
setItemPermissionsByMap(java.util.List userRights,
java.util.Map permissionMap)
Changes all stored permissions for this principal and a given list of user rights at once.
|
void |
setUID(java.lang.String uid)
Deprecated.
since ages - use
GeneratedPrincipal.setUid(SessionContext, String) instead |
java.lang.String |
toString()
Returns the
String representation of this item. |
addToGroups, addToGroups, getDefaultAttributeModes, getDescription, getDescription, getGroups, getGroupsCount, getGroupsCount, getName, getName, getSearchRestrictions, getSearchRestrictions, getUid, isMarkModifiedDisabled, removeFromGroups, removeFromGroups, setDescription, setDescription, setGroups, setName, setName, setUid, setUidcreateItem, getInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getImplementation, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, 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, writeReplacesetTenant@Deprecated public static final java.lang.String DISPLAYNAME
displayName attribute of User type.@Deprecated public static final java.lang.String ALLSEARCHRESTRICTIONS
allSearchRestrictions attribute of User type.@Deprecated public static final java.lang.String PRINCIPAL_GROUP_RELATION_NAME
PrincipalGroupRelation type.@Deprecated public static final java.lang.String ALLGROUPS
public java.lang.String toString()
ItemString representation of this item. This is by default the representation of the primary
key of this item.@Deprecated public java.lang.String getUID()
GeneratedPrincipal.getUid() insteadprotected void checkConsistencyUid(java.lang.String uid,
java.lang.String message,
java.lang.String composedTypeCode)
throws ConsistencyCheckException
ConsistencyCheckExceptionpublic java.lang.String getUid(SessionContext ctx)
GeneratedPrincipalPrincipal.uid attribute.getUid in class GeneratedPrincipal@Deprecated
public void setUID(java.lang.String uid)
throws ConsistencyCheckException
GeneratedPrincipal.setUid(SessionContext, String) insteadConsistencyCheckException - if there is already a principal with this idpublic abstract void checkSystemPrincipal()
throws ConsistencyCheckException
ConsistencyCheckExceptionpublic java.util.Set<PrincipalGroup> getGroups(SessionContext ctx)
getGroups in class GeneratedPrincipalPrincipalGroups the user is member inpublic java.util.Set<PrincipalGroup> getAllGroups()
public java.util.Set<PrincipalGroup> getAllGroups(SessionContext ctx)
PrincipalGroups this principal is member of ( transitive ! )@Deprecated public boolean isMemberOf(PrincipalGroup grp, boolean includingSupergroups)
UserService.isMemberOfGroup(UserGroupModel, UserGroupModel, boolean)includingSupergroups - if true indirect membership through group-in-group is evaluated, otherwise only direct
membershipgrp - the group to check membership forisMemberOf(PrincipalGroup)public void setGroups(SessionContext ctx, java.util.Set groups)
setGroups in class GeneratedPrincipalgroups - - the groups the user should be member in@Deprecated public boolean addToGroup(PrincipalGroup group)
GeneratedPrincipal.addToGroups(SessionContext, PrincipalGroup) instead@Deprecated public boolean removeFromGroup(PrincipalGroup group)
GeneratedPrincipal.removeFromGroups(SessionContext, PrincipalGroup) instead@Deprecated public boolean isMemberOf(PrincipalGroup g)
UserService.isMemberOfGroup(UserModel, UserGroupModel, boolean)g - the group to check membership forisMemberOf(PrincipalGroup, boolean)public java.util.Collection<SearchRestriction> getAllSearchRestrictions()
public java.util.Collection<SearchRestriction> getAllSearchRestrictions(SessionContext ctx)
public java.util.Map getItemPermissionsMap(java.util.List userRights)
The result map contains all items which this principal owns stored permissions for as keys, and a list of
Boolean objects ordered according to the given user rights list. These objects have the following meaning:
Boolean.TRUE ... a negative permission is storedBoolean.FALSE ... a positive permission is stored null ... no permission is stored for the according user rightItem.getPermissionMap(List). public void setItemPermissionsByMap(java.util.List userRights,
java.util.Map permissionMap)
The argument map must contain all items which this principal owns stored permissions for as keys, and a list of
Boolean objects ordered according to the given user rights list. These objects have the following meaning:
Boolean.TRUE ... a negative permission is storedBoolean.FALSE ... a positive permission is stored null ... no permission is stored for the according user rightItem.setPermissionsByMap(List, Map). @Deprecated public void addGlobalPermission(UserRight permission, boolean deny)
PermissionManagementService.addGlobalPermission(PermissionAssignment...)@Deprecated public boolean addGlobalPermissions(java.util.Collection<PermissionContainer> permissions)
PermissionManagementService.addGlobalPermissions(Collection)@Deprecated public void addGlobalNegativePermission(UserRight permission)
PermissionManagementService.addGlobalPermission(PermissionAssignment...)@Deprecated public void addGlobalPositivePermission(UserRight permission)
PermissionManagementService.addGlobalPermission(PermissionAssignment...)@Deprecated public void clearGlobalPermission(UserRight permission)
PermissionManagementService.removeGlobalPermission(PermissionAssignment...)@Deprecated public boolean clearGlobalPermissions(java.util.Collection<PermissionContainer> permissions)
PermissionManagementService.removeGlobalPermissions(Collection)@Deprecated public java.util.Set getGlobalPermissions(boolean negative)
PermissionManagementService.getGlobalPermissionsForPrincipal(PrincipalModel...)public java.util.Set getGlobalPositivePermissions()
public java.util.Set getGlobalNegativePermissions()
public java.util.Collection getAllGlobalPositivePermissions()
public java.util.Collection getAllGlobalNegativePermissions()
public abstract boolean isAdmin()
@Deprecated public int checkOwnGlobalPermission(PK userRightPK)
(PrincipalModel, String)@Deprecated public boolean checkGlobalPermission(UserRight right)
PermissionCheckingService.checkGlobalPermission(PrincipalModel, String)public void remove(SessionContext ctx) throws ConsistencyCheckException
partOf takes care of deleting them.remove in class Itemctx - A SessionContext objectConsistencyCheckException@Deprecated public abstract java.lang.String getDisplayName(SessionContext ctx)
PrincipalModel.getDisplayName()
Old jalo generated method from GeneratedPrincipal - Getter of the
Principal.displayName jalo localized attribute.@Deprecated public java.lang.String getDisplayName()
PrincipalModel.getDisplayName()
Old jalo generated method from GeneratedPrincipal - Getter of the
Principal.displayName jalo localized attribute.@Deprecated public abstract java.util.Map<Language,java.lang.String> getAllDisplayName(SessionContext ctx)
Principal.displayName jalo
localized attribute.@Deprecated public java.util.Map<Language,java.lang.String> getAllDisplayName()
Principal.displayName jalo
localized attribute.Copyright © 2018 SAP SE. All Rights Reserved.