@AlfrescoPublicApi
public interface ModelSecurityService
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEditProtectedAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspect)
Indicates whether the current user can edit (ie add or remove) a protected
aspect in the context of a given node.
|
boolean |
canEditProtectedProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName property)
Indicates whether the current user can edit a protected property in the context of
a given node.
|
void |
disable()
Disable model security checks for the current thread.
|
void |
enable()
Enable model security checks for the current thread.
|
ProtectedAspect |
getProtectedAspect(org.alfresco.service.namespace.QName name)
Get the details of the protected aspect, returns null if aspect is
not protected.
|
Set<org.alfresco.service.namespace.QName> |
getProtectedAspects()
Get the protected aspects.
|
Set<org.alfresco.service.namespace.QName> |
getProtectedProperties()
Get the protected properties
|
ProtectedProperty |
getProtectedProperty(org.alfresco.service.namespace.QName name)
Get the details of the protected property, returns null if property
is not protected.
|
boolean |
isEnabled()
Indicates whether model security is enabled or not.
|
boolean |
isProtectedAspect(org.alfresco.service.namespace.QName aspect)
Indicates whether an aspect is protected or not.
|
boolean |
isProtectedProperty(org.alfresco.service.namespace.QName property)
Indicates whether a property is protected or not.
|
void |
register(ProtectedModelArtifact atrifact)
Registers a protected model artifact with the service.
|
void |
setEnabled(boolean enabled)
Sets whether model security is enabled globally or not.
|
void setEnabled(boolean enabled)
enabled - boolean isEnabled()
void disable()
void enable()
void register(ProtectedModelArtifact atrifact)
atrifact - protected model artifactboolean isProtectedProperty(org.alfresco.service.namespace.QName property)
name - name of propertySet<org.alfresco.service.namespace.QName> getProtectedProperties()
Set<QName> all the protected propertiesProtectedProperty getProtectedProperty(org.alfresco.service.namespace.QName name)
name - name of the protected propertyProtectedProperty protected property details, null otherwiseboolean canEditProtectedProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName property)
If the property is not protected then returns true.
nodeRef - node referenceproperty - name of the propertyboolean isProtectedAspect(org.alfresco.service.namespace.QName aspect)
aspect - aspect nameSet<org.alfresco.service.namespace.QName> getProtectedAspects()
Set<QName> all the protected aspectsProtectedAspect getProtectedAspect(org.alfresco.service.namespace.QName name)
name - name of the aspectProtectedAspect protected aspect details, null otherwiseboolean canEditProtectedAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspect)
If the aspect is not protected then returns true.
nodeRef - node referenceaspect - name of the of aspectCopyright © 2005–2016 Alfresco Software. All rights reserved.