Package org.ametys.plugins.repository
Interface ACLAmetysObject
-
- All Superinterfaces:
AmetysObject
- All Known Subinterfaces:
CommentableContent,Content,ModifiableACLAmetysObject,ModifiableContent,ModifiableWebContent,ModifiableWorkflowAwareContent,SharedContent,WebContent,WorkflowAwareContent
- All Known Implementing Classes:
AbstractProgram,AbstractProgramPart,AbstractSurveyElement,AbstractTraversableProgramPart,AmetysObjectCollection,Cart,CartContainer,CategoryJCR,CMSJCRTag,Container,Course,CourseList,CoursePart,DefaultAmetysObject,DefaultContent,DefaultLink,DefaultLockableAmetysObject,DefaultPage,DefaultSharedContent,DefaultTraversableAmetysObject,DefaultWebContent,DefaultWorkflowAwareContent,DefaultZone,JCRCalendar,JCRCalendarEvent,JCRCalendarResource,JCRCategory,JCRPost,JCRProjectMember,JCRResource,JCRResourcesCollection,JCRTag,JCRTask,JCRTasksList,JCRThread,JCRWorkflow,JCRWorkflowProcess,KeywordJCR,ModifiableDefaultContent,ModifiableDefaultWebContent,OrgUnit,Person,Program,Project,ProjectTagJCR,Query,QueryContainer,RootAmetysObject,Site,Sitemap,SubProgram,Survey,SurveyPage,SurveyQuestion,ThemeJCR,Thesaurus,UserPage,VersionComponentAmetysObject,VersionsAmetysObject
public interface ACLAmetysObject extends AmetysObject
AmetysObjectthat can hold its profile assignments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<ProfileAssignmentStorage.AnonymousOrAnyConnectedKeys,Set<String>>getProfilesForAnonymousAndAnyConnectedUser()Gets the allowed profiles any connected user has on the given objectMap<GroupIdentity,Map<ProfileAssignmentStorage.UserOrGroup,Set<String>>>getProfilesForGroups(Set<GroupIdentity> groups)Gets the groups that have allowed profiles assigned on the given objectMap<UserIdentity,Map<ProfileAssignmentStorage.UserOrGroup,Set<String>>>getProfilesForUsers(UserIdentity user)Gets the users that have allowed profiles assigned on the given objectbooleanisInheritanceDisallowed()Returns true if the inheritance is disallow for this ametys object-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
-
-
-
Method Detail
-
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,Set<String>>> getProfilesForUsers(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,Set<String>>> getProfilesForGroups(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
-
-