Class VersionsAmetysObject
- java.lang.Object
-
- org.ametys.plugins.repository.AbstractAmetysObject
-
- org.ametys.plugins.repository.jcr.SimpleAmetysObject<F>
-
- org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject<VersionsFactory>
-
- org.ametys.plugins.repository.migration.jcr.data.repository.VersionsAmetysObject
-
- All Implemented Interfaces:
ACLAmetysObject
,AmetysObject
,JCRAmetysObject
,JCRTraversableAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableACLAmetysObject
,ModifiableAmetysObject
,ModifiableTraversableAmetysObject
,RemovableAmetysObject
,TraversableAmetysObject
public class VersionsAmetysObject extends DefaultTraversableAmetysObject<VersionsFactory>
Object representing the versions root element.
-
-
Field Summary
Fields Modifier and Type Field Description protected ModifiableRepositoryData
_repositoryData
The repository datastatic String
KNOWN_PLUGINS
Metadata name for storing a Node's lockTokenstatic String
NEW_REPOSITORY
Metadata name set to true on the creation of the repository
-
Constructor Summary
Constructors Constructor Description VersionsAmetysObject(Node node, String parentPath, VersionsFactory factory)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getKnownPlugins()
Get all the known plugins.Boolean
isNewRepository()
Get true if this is the first launch of this repositoryvoid
setKnownPlugins(Set<String> knownPlugins)
Set the known plugins.void
setNotNewRepository()
Set the information thas this repository is not considered new anymore-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, disallowInheritance, getChild, getChildren, getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, hasChild, isInheritanceDisallowed, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
-
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, 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.jcr.JCRAmetysObject
getNode
-
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
-
Methods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolder
-
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
-
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChildAt, getChildPosition
-
-
-
-
Field Detail
-
KNOWN_PLUGINS
public static final String KNOWN_PLUGINS
Metadata name for storing a Node's lockToken- See Also:
- Constant Field Values
-
NEW_REPOSITORY
public static final String NEW_REPOSITORY
Metadata name set to true on the creation of the repository- See Also:
- Constant Field Values
-
_repositoryData
protected ModifiableRepositoryData _repositoryData
The repository data
-
-
Constructor Detail
-
VersionsAmetysObject
public VersionsAmetysObject(Node node, String parentPath, VersionsFactory factory)
Constructor.- Parameters:
node
- the JCR Node.parentPath
- the parent pathfactory
- the corresponding factory.
-
-
Method Detail
-
getKnownPlugins
public Set<String> getKnownPlugins()
Get all the known plugins.- Returns:
- the known plugins
-
setKnownPlugins
public void setKnownPlugins(Set<String> knownPlugins) throws AmetysRepositoryException
Set the known plugins.- Parameters:
knownPlugins
- the known plugins- Throws:
AmetysRepositoryException
- if an error occurs
-
isNewRepository
public Boolean isNewRepository()
Get true if this is the first launch of this repository- Returns:
- true if this is the first launch of this repository
-
setNotNewRepository
public void setNotNewRepository() throws AmetysRepositoryException
Set the information thas this repository is not considered new anymore- Throws:
AmetysRepositoryException
- if an error occurs
-
-