public abstract class JCRProtectedNodeAbstractDecorator extends JCRNodeDecorator
JCRNodeWrapper.NodeNamingConflictResolutionStrategynodeEMPTY| Constructor and Description |
|---|
JCRProtectedNodeAbstractDecorator(JCRNodeWrapper node)
Instantiate this decorator, by default properties will be protect also from system session
|
JCRProtectedNodeAbstractDecorator(JCRNodeWrapper node,
boolean alwaysAllowSystem)
Instantiate this decorator, you can specify if system session should be able to read in any case
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
canReadProperty(String propertyName)
Only method to implement, that check the readability of a property, based on the property name
|
javax.jcr.PropertyIterator |
getProperties() |
javax.jcr.PropertyIterator |
getProperties(String s) |
javax.jcr.PropertyIterator |
getProperties(String[] strings) |
Map<String,String> |
getPropertiesAsString()
Returns a map of all property names of this node accessible through the current
Session with the value as String. |
JCRPropertyWrapper |
getProperty(String s) |
String |
getPropertyAsString(String name)
Returns the property value as
String at name relative to this
node. |
boolean |
hasProperty(String s) |
accept, addMixin, addNode, addNode, addNode, canAddMixin, cancelMerge, canMarkForDeletion, changeRoles, checkI18nAndMandatoryPropertiesForLocale, checkin, checkLanguageValidity, checkLock, checkout, checkpoint, checkValidity, clearAllLocks, clone, copy, copy, copy, copy, copy, copy, copy, copy, copy, copyProperties, createCollection, decorateProperty, denyRoles, doneMerge, equals, followLifecycleTransition, getAbsoluteUrl, getAbsoluteWebdavUrl, getAccessControlManager, getAclEntries, getAclInheritanceBreak, getActualAclEntries, getAllowedLifecycleTransistions, getAncestor, getAncestors, getApplicableChildNodeDefinition, getApplicablePropertyDefinition, getApplicablePropertyDefinition, getAvailableRoles, getBaseVersion, getCanonicalPath, getContentLastModifiedAsDate, getContentLastPublishedAsDate, getCorrespondingNodePath, getCreationDateAsDate, getCreationUser, getDecoratedNode, getDefinition, getDepth, getDisplayableName, getExistingLocales, getFileContent, getI18N, getI18N, getI18Ns, getIdentifier, getIndex, getJCRProvider, getLanguage, getLastModifiedAsDate, getLastPublishedAsDate, getLinearVersionInfos, getLock, getLockedLocales, getLockInfos, getLockOwner, getMixinNodeTypes, getModificationUser, getName, getNode, getNodes, getNodes, getNodes, getNodeTypes, getOrCreateI18N, getOrCreateI18N, getParent, getPath, getPermissions, getPermissionsAsBitSet, getPlaceholder, getPrimaryItem, getPrimaryNodeType, getPrimaryNodeTypeName, getProvider, getPublicationUser, getRealNode, getReferenceProperties, getReferences, getReferences, getResolveSite, getSession, getSharedSet, getThumbnails, getThumbnailUrl, getThumbnailUrls, getUnescapedName, getUrl, getUser, getUUID, getVersionHistory, getVersionInfos, getVersions, getVersionsAsVersion, getWeakReferences, getWeakReferences, getWebdavUrl, grantRoles, hashCode, hasI18N, hasI18N, hasNode, hasNodes, hasPermission, hasProperties, hasTranslations, holdsLock, internalCopy, isCheckedOut, isCollection, isFile, isLockable, isLocked, isMarkedForDeletion, isModified, isNew, isNode, isNodeType, isPortlet, isSame, isVersioned, lock, lockAndStoreToken, lockAndStoreToken, markForDeletion, merge, orderBefore, refresh, remove, removeMixin, removeShare, removeSharedSet, rename, restore, restore, restore, restoreByLabel, revokeAllRoles, revokeRolesForPrincipal, save, saveSession, setAclInheritanceBreak, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, toString, unlock, unlock, unlock, unmarkForDeletion, update, uploadFile, versionFilepublic JCRProtectedNodeAbstractDecorator(JCRNodeWrapper node)
node - the nodepublic JCRProtectedNodeAbstractDecorator(JCRNodeWrapper node, boolean alwaysAllowSystem)
node - the nodealwaysAllowSystem - set to true if you want system session to be able to read protected propertiesprotected abstract boolean canReadProperty(String propertyName) throws javax.jcr.RepositoryException
propertyName - the property name to checkjavax.jcr.RepositoryException - in case of JCR-related errorspublic javax.jcr.PropertyIterator getProperties()
throws javax.jcr.RepositoryException
getProperties in interface javax.jcr.NodegetProperties in class JCRNodeDecoratorjavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getProperties(String s) throws javax.jcr.RepositoryException
getProperties in interface javax.jcr.NodegetProperties in class JCRNodeDecoratorjavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getProperties(String[] strings) throws javax.jcr.RepositoryException
getProperties in interface javax.jcr.NodegetProperties in class JCRNodeDecoratorjavax.jcr.RepositoryExceptionpublic Map<String,String> getPropertiesAsString() throws javax.jcr.RepositoryException
JCRNodeWrapperSession with the value as String.getPropertiesAsString in interface JCRNodeWrappergetPropertiesAsString in class JCRNodeDecoratorjavax.jcr.RepositoryException - in case of JCR-related errorspublic JCRPropertyWrapper getProperty(String s) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
JCRNodeWrappergetProperty in interface javax.jcr.NodegetProperty in interface JCRNodeWrappergetProperty in class JCRNodeDecoratorrelPath.javax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionpublic String getPropertyAsString(String name)
JCRNodeWrapperString at name relative to this
node.getPropertyAsString in interface JCRNodeWrappergetPropertyAsString in class JCRNodeDecoratorname - The relative path of the property to retrieve.Stringpublic boolean hasProperty(String s) throws javax.jcr.RepositoryException
hasProperty in interface javax.jcr.NodehasProperty in class JCRNodeDecoratorjavax.jcr.RepositoryExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.