Package org.ametys.plugins.repository
Interface ACLAmetysObject
- All Superinterfaces:
AmetysObject
- All Known Subinterfaces:
CommentableContent
,Content
,ContributorCommentableContent
,ModifiableACLAmetysObject
,ModifiableContent
,ModifiableWebContent
,ModifiableWorkflowAwareContent
,SharedContent
,WebContent
,WorkflowAwareContent
- All Known Implementing Classes:
AbstractColorableJCRTag
,AbstractProgram
,AbstractProgramPart
,AbstractSitemapElement
,AbstractSurveyElement
,AbstractTraversableProgramPart
,AmetysObjectCollection
,Cart
,CartContainer
,CategoryJCR
,CMSJCRTag
,Container
,Course
,CourseList
,CoursePart
,DefaultAmetysObject
,DefaultContent
,DefaultLink
,DefaultLockableAmetysObject
,DefaultPage
,DefaultSharedContent
,DefaultTraversableAmetysObject
,DefaultWebContent
,DefaultWorkflowAwareContent
,DefaultZone
,Form
,FormDirectory
,FormPage
,FormQuestion
,JCRCalendar
,JCRCalendarEvent
,JCRCalendarResource
,JCRCategory
,JCRPost
,JCRProjectMember
,JCRResource
,JCRResourcesCollection
,JCRTag
,JCRTask
,JCRTasksList
,JCRThread
,JCRThread
,KeywordJCR
,ModifiableDefaultContent
,ModifiableDefaultWebContent
,OrgUnit
,Person
,Program
,Project
,ProjectTagJCR
,Query
,QueryContainer
,RootAmetysObject
,Site
,Sitemap
,SubProgram
,Survey
,SurveyPage
,SurveyQuestion
,ThemeJCR
,Thesaurus
,UserPage
,VersionComponentAmetysObject
,VersionsAmetysObject
AmetysObject
that can hold its profile assignments.-
Method Summary
Modifier and TypeMethodDescriptionGets the allowed profiles any connected user has on the given objectgetProfilesForGroups
(Set<GroupIdentity> groups) Gets the groups that have allowed profiles assigned on the given objectGets the users that have allowed profiles assigned on the given objectboolean
Returns true if the inheritance is disallow for this ametys objectMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Method Details
-
getProfilesForAnonymousAndAnyConnectedUser
Map<ProfileAssignmentStorage.AnonymousOrAnyConnectedKeys,Set<String>> getProfilesForAnonymousAndAnyConnectedUser()Gets the allowed profiles any connected user has on the given object- Returns:
- a map containing allowed/denied profiles that anonymous and any connected user has on the given object
-
getProfilesForUsers
Map<UserIdentity,Map<ProfileAssignmentStorage.UserOrGroup, getProfilesForUsersSet<String>>> (UserIdentity user) Gets the users that have allowed profiles assigned on the given object- Parameters:
user
- The user to get profiles for. Can be null to get profiles for all users that have rights- Returns:
- The map of allowed users with their assigned allowed/denied profiles
-
getProfilesForGroups
Map<GroupIdentity,Map<ProfileAssignmentStorage.UserOrGroup, getProfilesForGroupsSet<String>>> (Set<GroupIdentity> groups) Gets the groups that have allowed profiles assigned on the given object- Parameters:
groups
- The group to get profiles for. Can be null to get profiles for all groups that have rights- Returns:
- The map of allowed/denied groups with their assigned profiles
-
isInheritanceDisallowed
boolean isInheritanceDisallowed()Returns true if the inheritance is disallow for this ametys object- Returns:
- true if the inheritance is disallow for this ametys object
-