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 classJCRProjectMember.MemberTypeThe type of the member
-
Field Summary
Fields Modifier and Type Field Description private static StringMETADATA_GROUPprivate static StringMETADATA_GROUP_DIRECTORYprivate static StringMETADATA_GROUP_IDprivate static StringMETADATA_ROLEprivate static StringMETADATA_TYPEprivate static StringMETADATA_USER-
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 ModifiableModelLessDataHoldergetDataHolder()Returns theDataHolderof thisAmetysObject.GroupIdentitygetGroup()Get the group identity of the project memberStringgetRole()Get the role of this project memberStringgetType()Get the type of the member.UserIdentitygetUser()Get the user identity of the project membervoidsetGroup(GroupIdentity groupIdentity)Set the group identityvoidsetRole(String role)Set the role of this project member.voidsetType(JCRProjectMember.MemberType type)Set the type of the member.voidsetUser(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, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getAllRevisions, getBaseNode, getBaseVersion, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, getLabels, getLabels, getNode, 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, getDataNames
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
dataToSAX
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelLessDataAwareAmetysObject
dataToSAX, getType, getValue, getValue, getValueOfType, getValueOfType, hasValue, isMultiple
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToSAX, hasValue
-
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, getRepositoryData, removeValue, setValue, setValue, synchronizeValues
-
-
-
-
Field Detail
-
METADATA_USER
private static final String METADATA_USER
- See Also:
- Constant Field Values
-
METADATA_GROUP
private static final String METADATA_GROUP
- See Also:
- Constant Field Values
-
METADATA_GROUP_DIRECTORY
private static final String METADATA_GROUP_DIRECTORY
- See Also:
- Constant Field Values
-
METADATA_GROUP_ID
private static final String METADATA_GROUP_ID
- See Also:
- Constant Field Values
-
METADATA_TYPE
private static final String METADATA_TYPE
- See Also:
- Constant Field Values
-
METADATA_ROLE
private static final String METADATA_ROLE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JCRProjectMember
public JCRProjectMember(Node node, String parentPath, JCRProjectMemberFactory factory)
Creates aJCRProjectMember.- Parameters:
node- the node backing thisAmetysObjectparentPath- the parentPath in the Ametys hierarchyfactory- the ProjectUserFactory which created the AmetysObject
-
-
Method Detail
-
getDataHolder
public ModifiableModelLessDataHolder getDataHolder()
Description copied from interface:DataAwareAmetysObjectReturns theDataHolderof thisAmetysObject.- Specified by:
getDataHolderin interfaceDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModelLessDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModifiableModelLessDataAwareAmetysObject- Returns:
- the
DataHolderof thisAmetysObject
-
getType
public String 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
-
-