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 Modifier and Type Field Description private static String
METADATA_GROUP
private static String
METADATA_GROUP_DIRECTORY
private static String
METADATA_GROUP_ID
private static String
METADATA_ROLE
private static String
METADATA_TYPE
private static String
METADATA_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 ModifiableModelLessDataHolder
getDataHolder()
Returns theDataHolder
of thisAmetysObject
.GroupIdentity
getGroup()
Get the group identity of the project memberString
getRole()
Get the role of this project memberString
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, 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 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 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
-
-