Class JCRProjectMember
- java.lang.Object
-
- org.ametys.plugins.repository.AbstractAmetysObject
-
- org.ametys.plugins.repository.jcr.SimpleAmetysObject<F>
-
- org.ametys.plugins.repository.jcr.DefaultAmetysObject<JCRProjectMemberFactory>
-
- org.ametys.plugins.workspaces.members.JCRProjectMember
-
- All Implemented Interfaces:
ACLAmetysObject
,AmetysObject
,DataAwareAmetysObject
,ModelLessDataAwareAmetysObject
,ModifiableModelLessDataAwareAmetysObject
,DataHolder
,ModelLessDataHolder
,ModifiableDataHolder
,ModifiableModelLessDataHolder
,JCRAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableACLAmetysObject
,ModifiableAmetysObject
,RemovableAmetysObject
,DataAndVersionAwareAmetysObject
,ModifiableDataAwareVersionableAmetysObject
,VersionableAmetysObject
,VersionAwareAmetysObject
public class JCRProjectMember extends DefaultAmetysObject<JCRProjectMemberFactory> implements ModifiableModelLessDataAwareAmetysObject
Class representing of project's member, backed by a JCR node.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JCRProjectMember.MemberType
The type of the member
-
Field Summary
-
Fields inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
PROTECTED_PROPERTIES
-
-
Constructor Summary
Constructors Constructor Description JCRProjectMember(Node node, String parentPath, JCRProjectMemberFactory factory)
Creates aJCRProjectMember
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifiableModelLessDataHolder
getDataHolder()
Returns theDataHolder
of thisAmetysObject
.GroupIdentity
getGroup()
Get the group identity of the project memberString
getRole()
Get the role of this project memberJCRProjectMember.MemberType
getType()
Get the type of the member.UserIdentity
getUser()
Get the user identity of the project membervoid
setGroup(GroupIdentity groupIdentity)
Set the group identityvoid
setRole(String role)
Set the role of this project member.void
setType(JCRProjectMember.MemberType type)
Set the type of the member.void
setUser(UserIdentity userIdentity)
Set the user identity-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, addLabel, checkpoint, copyNode, disallowInheritance, getAllLabels, getAllRevisions, getBaseNode, getBaseVersion, getLabels, getLabels, getNode, getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, getRevision, getRevisionTimestamp, getRevisionTimestamp, getUnversionedDataHolder, getVersionHistory, isInheritanceDisallowed, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers, removeLabel, restoreFromLabel, restoreFromNode, restoreFromRevision, switchToLabel, switchToRevision
-
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
-
Methods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, dataToSAX, dataToSAX, getDataNames
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelLessDataAwareAmetysObject
dataToSAX, getType, getValue, getValue, getValueOfType, getValueOfType, hasValue, hasValueOrEmpty, isMultiple
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToSAX, hasValue, hasValueOrEmpty
-
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelLessDataAwareAmetysObject
getComposite, getComposite, getParentDataHolder, getRepositoryData, getRootDataHolder, removeValue, setValue, setValue, synchronizeValues
-
-
-
-
Constructor Detail
-
JCRProjectMember
public JCRProjectMember(Node node, String parentPath, JCRProjectMemberFactory factory)
Creates aJCRProjectMember
.- Parameters:
node
- the node backing thisAmetysObject
parentPath
- the parentPath in the Ametys hierarchyfactory
- the ProjectUserFactory which created the AmetysObject
-
-
Method Detail
-
getDataHolder
public ModifiableModelLessDataHolder getDataHolder()
Description copied from interface:DataAwareAmetysObject
Returns theDataHolder
of thisAmetysObject
.- Specified by:
getDataHolder
in interfaceDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModelLessDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModifiableModelLessDataAwareAmetysObject
- Returns:
- the
DataHolder
of thisAmetysObject
-
getType
public JCRProjectMember.MemberType getType()
Get the type of the member. It can be a user or a group- Returns:
- The type of the member
-
setType
public void setType(JCRProjectMember.MemberType type)
Set the type of the member. It can be a user or a group- Parameters:
type
- The type of the member
-
getUser
public UserIdentity getUser()
Get the user identity of the project member- Returns:
- The user identity
-
setUser
public void setUser(UserIdentity userIdentity)
Set the user identity- Parameters:
userIdentity
- The user identity
-
getGroup
public GroupIdentity getGroup()
Get the group identity of the project member- Returns:
- The group identity
-
setGroup
public void setGroup(GroupIdentity groupIdentity)
Set the group identity- Parameters:
groupIdentity
- The group identity
-
-