Uses of Class
org.silverpeas.core.admin.user.model.SilverpeasRole
-
-
Uses of SilverpeasRole in org.silverpeas.cmis.security
Method parameters in org.silverpeas.cmis.security with type arguments of type SilverpeasRole Modifier and Type Method Description boolean
GrantedAccessController. isUserAuthorized(Set<SilverpeasRole> userRoles)
-
Uses of SilverpeasRole in org.silverpeas.core.admin.component.model
Fields in org.silverpeas.core.admin.component.model declared as SilverpeasRole Modifier and Type Field Description static SilverpeasRole
InheritableSpaceRoles. ADMIN
static SilverpeasRole
InheritableSpaceRoles. PUBLISHER
static SilverpeasRole
InheritableSpaceRoles. READER
static SilverpeasRole
InheritableSpaceRoles. WRITER
Methods in org.silverpeas.core.admin.component.model that return SilverpeasRole Modifier and Type Method Description static SilverpeasRole[]
InheritableSpaceRoles. getAllRoles()
Gets all the roles in a space that can be inherited by a component instance in that space.default SilverpeasRole
SilverpeasComponentInstance. getHighestSilverpeasRolesFor(User user)
Gets the highest silverpeas role the given user has on the component instance.
BE CAREFUL, the manager role is never returned as it corresponds to a space role.Methods in org.silverpeas.core.admin.component.model that return types with arguments of type SilverpeasRole Modifier and Type Method Description Collection<SilverpeasRole>
ComponentInst. getSilverpeasRolesFor(User user)
Collection<SilverpeasRole>
ComponentInstLight. getSilverpeasRolesFor(User user)
Collection<SilverpeasRole>
SilverpeasComponentInstance. getSilverpeasRolesFor(User user)
Gets the silverpeas role the given user has on the component instance.
BE CAREFUL, the manager role is never returned as it corresponds to a space role.default Collection<SilverpeasRole>
SilverpeasPersonalComponentInstance. getSilverpeasRolesFor(User user)
Methods in org.silverpeas.core.admin.component.model with parameters of type SilverpeasRole Modifier and Type Method Description static boolean
InheritableSpaceRoles. isASpaceRole(SilverpeasRole role)
Is the specified user role is a predefined space role. -
Uses of SilverpeasRole in org.silverpeas.core.admin.service
Methods in org.silverpeas.core.admin.service that return types with arguments of type SilverpeasRole Modifier and Type Method Description Collection<SilverpeasRole>
DefaultOrganizationController. getUserSilverpeasRolesOn(User user, String componentInstanceIdentifier)
Collection<SilverpeasRole>
OrganizationController. getUserSilverpeasRolesOn(User user, String componentInstanceIdentifier)
Gets the collection of silverpeas roles the given user has on the component instance represented by the given identifier.
In contrary toOrganizationController.getUserProfiles(String, String)
,OrganizationController.getUserProfiles(String, ProfiledObjectId)
orOrganizationController.getUserProfiles(String, String, ProfiledObjectId)
signatures, this one is able to return user roles of different kinds of implementation ofSilverpeasComponentInstance
.
So, this signature is useful into contexts of transversal treatments.
BE CAREFUL, the manager role is never returned as it corresponds to a space role.Methods in org.silverpeas.core.admin.service with parameters of type SilverpeasRole Modifier and Type Method Description SpaceProfile
Administration. getSpaceProfile(String spaceId, SilverpeasRole role)
Gets the space profile instance which provides all user and group identifiers through simple methods.SpaceProfile
DefaultOrganizationController. getSpaceProfile(String spaceId, SilverpeasRole role)
SpaceProfile
OrganizationController. getSpaceProfile(String spaceId, SilverpeasRole role)
Gets the space profile instance which provides all user and group identifiers through simple methods. -
Uses of SilverpeasRole in org.silverpeas.core.admin.user.model
Fields in org.silverpeas.core.admin.user.model with type parameters of type SilverpeasRole Modifier and Type Field Description static Set<SilverpeasRole>
SilverpeasRole. READER_ROLES
Methods in org.silverpeas.core.admin.user.model that return SilverpeasRole Modifier and Type Method Description static SilverpeasRole
SilverpeasRole. fromString(String name)
Gets theSilverpeasRole
instance that matches the specified role name.static SilverpeasRole
SilverpeasRole. getHighestFrom(Collection<SilverpeasRole> roles)
Gets the highest role from the given ones.static SilverpeasRole
SilverpeasRole. getHighestFrom(SilverpeasRole... roles)
Gets the highest role from the given ones.static SilverpeasRole
SilverpeasRole. valueOf(String name)
Returns the enum constant of this type with the specified name.static SilverpeasRole[]
SilverpeasRole. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.silverpeas.core.admin.user.model that return types with arguments of type SilverpeasRole Modifier and Type Method Description static Set<SilverpeasRole>
SilverpeasRole. fromStrings(String[] roles)
Gets for each of the specified roles the matchingSilverpeasRole
instance.static Set<SilverpeasRole>
SilverpeasRole. listFrom(String roles)
Gets for each of the specified roles the matchingSilverpeasRole
instance.Methods in org.silverpeas.core.admin.user.model with parameters of type SilverpeasRole Modifier and Type Method Description static SilverpeasRole
SilverpeasRole. getHighestFrom(SilverpeasRole... roles)
Gets the highest role from the given ones.boolean
SilverpeasRole. isGreaterThan(SilverpeasRole role)
Indicates if a role is greater than an other one.boolean
SilverpeasRole. isGreaterThanOrEquals(SilverpeasRole role)
Indicates if a role is greater than or equals an other one.Method parameters in org.silverpeas.core.admin.user.model with type arguments of type SilverpeasRole Modifier and Type Method Description static String
SilverpeasRole. asString(Set<SilverpeasRole> roles)
Gets the role name as used in Silverpeas for each of the specifiedSilverpeasRole
instances.static SilverpeasRole
SilverpeasRole. getHighestFrom(Collection<SilverpeasRole> roles)
Gets the highest role from the given ones. -
Uses of SilverpeasRole in org.silverpeas.core.contribution.attachment.model
Methods in org.silverpeas.core.contribution.attachment.model that return types with arguments of type SilverpeasRole Modifier and Type Method Description Set<SilverpeasRole>
SimpleDocument. getForbiddenDownloadForRoles()
Gets roles for which download is not allowed.Methods in org.silverpeas.core.contribution.attachment.model with parameters of type SilverpeasRole Modifier and Type Method Description void
SimpleDocument. addRolesForWhichDownloadIsAllowed(SilverpeasRole... allowedRoles)
Allows the download for the given roles.boolean
SimpleDocument. addRolesForWhichDownloadIsForbidden(SilverpeasRole... forbiddenRoles)
Forbids the download for the given roles.Method parameters in org.silverpeas.core.contribution.attachment.model with type arguments of type SilverpeasRole Modifier and Type Method Description boolean
SimpleDocument. addRolesForWhichDownloadIsAllowed(Collection<SilverpeasRole> allowedRoles)
Allows the download for the given roles.boolean
SimpleDocument. addRolesForWhichDownloadIsForbidden(Collection<SilverpeasRole> forbiddenRoles)
Forbids the download for the given roles.boolean
Document. isDownloadAllowedForRoles(Set<SilverpeasRole> roles)
boolean
SimpleDocument. isDownloadAllowedForRoles(Set<SilverpeasRole> roles)
Indicates if the download of the document is allowed for the given roles. -
Uses of SilverpeasRole in org.silverpeas.core.security.authorization
Methods in org.silverpeas.core.security.authorization that return types with arguments of type SilverpeasRole Modifier and Type Method Description Set<SilverpeasRole>
AbstractAccessController. getUserRoles(String userId, T object, AccessControlContext context)
Set<SilverpeasRole>
AccessController. getUserRoles(String userId, T object, AccessControlContext context)
Gets the user roles about the aimed object and by taking in account the context of the access.Methods in org.silverpeas.core.security.authorization with parameters of type SilverpeasRole Modifier and Type Method Description boolean
ComponentInstancePublicationAccessControlExtension. canPublicationBePersistedOrDeletedBy(PublicationDetail publication, String instanceId, String userId, SilverpeasRole userRole, AccessControlContext context)
boolean
DefaultInstancePublicationAccessControlExtension. canPublicationBePersistedOrDeletedBy(PublicationDetail publication, String instanceId, String userId, SilverpeasRole userRole, AccessControlContext context)
Method parameters in org.silverpeas.core.security.authorization with type arguments of type SilverpeasRole Modifier and Type Method Description protected void
AbstractAccessController. fillUserRoles(Set<SilverpeasRole> userRoles, AccessControlContext context, String userId, T object)
Fills in the specified set the roles the user plays for the given resource in Silverpeas according to the specified access context.protected void
ComponentAccessController. fillUserRoles(Set<SilverpeasRole> userRoles, AccessControlContext context, String userId, String componentId)
protected void
NodeAccessController. fillUserRoles(Set<SilverpeasRole> userRoles, AccessControlContext context, String userId, NodePK nodePK)
protected void
PublicationAccessController. fillUserRoles(Set<SilverpeasRole> userRoles, AccessControlContext context, String userId, PublicationPK publicationPK)
protected void
SpaceAccessController. fillUserRoles(Set<SilverpeasRole> userRoles, AccessControlContext context, String userId, String spaceId)
boolean
ComponentInstanceAccessControlExtension. fillUserRolesFromComponentInstance(ComponentAccessController.DataManager dataManager, User user, String componentId, AccessControlContext context, Set<SilverpeasRole> userRoles)
boolean
DefaultInstanceAccessControlExtension. fillUserRolesFromComponentInstance(ComponentAccessController.DataManager dataManager, User user, String componentId, AccessControlContext context, Set<SilverpeasRole> userRoles)
default boolean
AccessController. isUserAuthorized(Set<SilverpeasRole> userRoles)
Checks user authorization from the given role collection. -
Uses of SilverpeasRole in org.silverpeas.core.web.attachment.tag
Methods in org.silverpeas.core.web.attachment.tag with parameters of type SilverpeasRole Modifier and Type Method Description void
SimpleDocumentContextualMenu. setUserRole(SilverpeasRole userRole)
-
Uses of SilverpeasRole in org.silverpeas.core.web.mvc.controller
Methods in org.silverpeas.core.web.mvc.controller that return SilverpeasRole Modifier and Type Method Description SilverpeasRole
AbstractComponentSessionController. getHighestSilverpeasUserRole()
SilverpeasRole
ComponentSessionController. getHighestSilverpeasUserRole()
Gets the highest role the user has on the component.Methods in org.silverpeas.core.web.mvc.controller that return types with arguments of type SilverpeasRole Modifier and Type Method Description Collection<SilverpeasRole>
AbstractComponentSessionController. getSilverpeasUserRoles()
Collection<SilverpeasRole>
ComponentSessionController. getSilverpeasUserRoles()
Gets the roles the user has on the component. -
Uses of SilverpeasRole in org.silverpeas.core.web.mvc.webcomponent
Methods in org.silverpeas.core.web.mvc.webcomponent that return SilverpeasRole Modifier and Type Method Description SilverpeasRole
WebComponentRequestContext. getHighestUserRole()
Methods in org.silverpeas.core.web.mvc.webcomponent that return types with arguments of type SilverpeasRole Modifier and Type Method Description Collection<SilverpeasRole>
WebComponentRequestContext. getUserRoles()
-
Uses of SilverpeasRole in org.silverpeas.core.web.mvc.webcomponent.annotation
Methods in org.silverpeas.core.web.mvc.webcomponent.annotation that return SilverpeasRole Modifier and Type Method Description SilverpeasRole
value()
-
Uses of SilverpeasRole in org.silverpeas.core.web.rs
Methods in org.silverpeas.core.web.rs that return SilverpeasRole Modifier and Type Method Description SilverpeasRole
RESTWebService. getHighestUserRole()
Gets the highest role of the user behind the service call.Methods in org.silverpeas.core.web.rs that return types with arguments of type SilverpeasRole Modifier and Type Method Description protected Collection<SilverpeasRole>
RESTWebService. getUserRoles()
Gets roles of the authenticated user.Methods in org.silverpeas.core.web.rs with parameters of type SilverpeasRole Modifier and Type Method Description RESTWebService.WebProcess<R>
RESTWebService.WebProcess. lowestAccessRole(SilverpeasRole lowestRoleAccess)
Sets the lowest role access that the user behind the service call must verify. -
Uses of SilverpeasRole in org.silverpeas.core.webapi.admin
Methods in org.silverpeas.core.webapi.admin that return SilverpeasRole Modifier and Type Method Description SilverpeasRole
UsersAndGroupsRoleEntity. getRole()
Methods in org.silverpeas.core.webapi.admin that return types with arguments of type SilverpeasRole Modifier and Type Method Description Map<SilverpeasRole,UsersAndGroupsRoleEntity>
ComponentResource. getUsersAndGroupsRoles(String roles)
Gets users and groups roles indexed by role names.Map<SilverpeasRole,UsersAndGroupsRoleEntity>
SpaceResource. getUsersAndGroupsRoles(String spaceId, String roles)
Gets users and groups roles indexed by role names.Methods in org.silverpeas.core.webapi.admin with parameters of type SilverpeasRole Modifier and Type Method Description static UsersAndGroupsRoleEntity
UsersAndGroupsRoleEntity. createFrom(SilverpeasRole role, String label)
Creates a new entity. -
Uses of SilverpeasRole in org.silverpeas.core.webapi.admin.component
Methods in org.silverpeas.core.webapi.admin.component that return SilverpeasRole Modifier and Type Method Description static SilverpeasRole
SilverpeasComponentInstanceRoleProvider. getHighestOfCurrentUserOn(String componentInstanceId)
Gets the highest role on the component represented by the given identifier the current user has.
The result is put into request cache in order to improve performances in case of multiple access from a single HTTP request. -
Uses of SilverpeasRole in org.silverpeas.core.webapi.node
Methods in org.silverpeas.core.webapi.node with parameters of type SilverpeasRole Modifier and Type Method Description static NodeEntity
NodeEntity. fromNodeDetail(SilverpeasRole highestComponentUserRole, NodeDetail node, String uri)
static NodeEntity
NodeEntity. fromNodeDetail(SilverpeasRole highestComponentUserRole, NodeDetail node, String uri, String lang)
static NodeEntity
NodeEntity. fromNodeDetail(SilverpeasRole highestComponentUserRole, NodeDetail node, URI uri)
Creates a new node entity from the specified node.static NodeEntity
NodeEntity. fromNodeDetail(SilverpeasRole highestComponentUserRole, NodeDetail node, URI uri, String lang)
-
Uses of SilverpeasRole in org.silverpeas.web.ddwe
Methods in org.silverpeas.web.ddwe that return types with arguments of type SilverpeasRole Modifier and Type Method Description Collection<SilverpeasRole>
DragAndDropWebEditorRequestContext. getUserRoles()
-
Uses of SilverpeasRole in org.silverpeas.web.documenttemplate
Methods in org.silverpeas.web.documenttemplate that return types with arguments of type SilverpeasRole Modifier and Type Method Description Collection<SilverpeasRole>
DocumentTemplateWebRequestContext. getUserRoles()
-
Uses of SilverpeasRole in org.silverpeas.web.usercalendar.security.authorization
Method parameters in org.silverpeas.web.usercalendar.security.authorization with type arguments of type SilverpeasRole Modifier and Type Method Description boolean
UserCalendarInstanceAccessControlExtension. fillUserRolesFromComponentInstance(ComponentAccessController.DataManager dataManager, User user, String componentId, AccessControlContext context, Set<SilverpeasRole> userRoles)
-
Uses of SilverpeasRole in org.silverpeas.web.wbe
Methods in org.silverpeas.web.wbe that return types with arguments of type SilverpeasRole Modifier and Type Method Description Collection<SilverpeasRole>
WbeWebRequestContext. getUserRoles()
-