Modifier and Type | Class and Description |
---|---|
static class |
PermissionModel.RequiredKey
Cache key
|
Constructor and Description |
---|
PermissionModel()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addPermissionModel(String model)
Adds a permission model
|
boolean |
checkPermission(PermissionReference required)
Is this permission refernece to a permission and not a permissoinSet?
|
Set<PermissionReference> |
getAllExposedPermissions()
Get all exposed permissions (regardless of type exposure)
|
Set<PermissionReference> |
getAllPermissions()
Get all exposed permissions (regardless of type exposure)
|
Set<PermissionReference> |
getAllPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get the permissions that can be set for the given node.
|
Set<PermissionReference> |
getAllPermissions(org.alfresco.service.namespace.QName type)
Get the permissions that can be set for the given type.
|
Set<PermissionReference> |
getAllPermissions(org.alfresco.service.namespace.QName typeName,
Set<org.alfresco.service.namespace.QName> aspects)
Get the permissions that can be set for the given type.
|
org.alfresco.service.cmr.security.AccessStatus |
getDefaultPermission()
Set the default access status
|
org.alfresco.service.cmr.security.AccessStatus |
getDefaultPermission(PermissionReference pr)
Get the default acces status for the givne permission
|
Set<PermissionReference> |
getExposedPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get the permissions that are exposed to be set for the given node.
|
Set<PermissionReference> |
getExposedPermissions(org.alfresco.service.namespace.QName type)
Get the permissions that are exposed to be set for the given type.
|
Set<? extends PermissionEntry> |
getGlobalPermissionEntries()
Get the global permissions for the model.
|
Set<PermissionReference> |
getGranteePermissions(PermissionReference permissionReference)
Get the permissions which are granted by the supplied permission.
|
Set<PermissionReference> |
getGrantingPermissions(PermissionReference permissionReference)
Get all the permissions that grant this permission.
|
Set<PermissionReference> |
getImmediateGranteePermissions(PermissionReference permissionReference)
Get the permissions which are granted by the supplied permission.
|
PermissionReference |
getPermissionReference(org.alfresco.service.namespace.QName qname,
String permissionName)
Find a permission by name in the type context.
|
Map<org.alfresco.service.namespace.QName,PermissionSet> |
getPermissionSets()
Get the permission sets by type
|
Set<PermissionReference> |
getRequiredPermissions(PermissionReference required,
org.alfresco.service.namespace.QName qName,
Set<org.alfresco.service.namespace.QName> aspectQNames,
RequiredPermission.On on)
Get the permissions that must also be present on the node for the required permission to apply.
|
Set<PermissionReference> |
getUnconditionalRequiredPermissions(PermissionReference required,
RequiredPermission.On on) |
boolean |
hasFull(PermissionReference permissionReference)
Does this permission allow full control?
|
void |
init()
Adds the
model . |
boolean |
isUnique(PermissionReference permissionReference)
Does the permission reference have a unique name?
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary service
|
void |
setDtdSchema(String dtdSchema)
Set the dtd schema that is used to validate permission model
|
void |
setModel(String model)
Set the model
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
void |
setValidate(boolean validate)
Indicates whether model should be validated on initialization against specified dtd
|
public void setModel(String model)
model
- Stringpublic void setDtdSchema(String dtdSchema)
dtdSchema
- Stringpublic void setValidate(boolean validate)
validate
- booleanpublic void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService
- DictionaryServicepublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- NodeServicepublic void init()
model
.public void addPermissionModel(String model)
model
- path to the permission model to addpublic org.alfresco.service.cmr.security.AccessStatus getDefaultPermission()
public org.alfresco.service.cmr.security.AccessStatus getDefaultPermission(PermissionReference pr)
pr
- PermissionReferencepublic Set<? extends PermissionEntry> getGlobalPermissionEntries()
ModelDAO
getGlobalPermissionEntries
in interface ModelDAO
public Map<org.alfresco.service.namespace.QName,PermissionSet> getPermissionSets()
public Set<PermissionReference> getAllPermissions(org.alfresco.service.namespace.QName type)
ModelDAO
getAllPermissions
in interface ModelDAO
type
- - the type in the data dictionary.public Set<PermissionReference> getExposedPermissions(org.alfresco.service.namespace.QName type)
ModelDAO
getExposedPermissions
in interface ModelDAO
type
- - the type in the data dictionary.public Set<PermissionReference> getAllPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
ModelDAO
getAllPermissions
in interface ModelDAO
nodeRef
- NodeRefpublic Set<PermissionReference> getExposedPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
ModelDAO
getExposedPermissions
in interface ModelDAO
nodeRef
- NodeRefpublic Set<PermissionReference> getAllPermissions(org.alfresco.service.namespace.QName typeName, Set<org.alfresco.service.namespace.QName> aspects)
ModelDAO
getAllPermissions
in interface ModelDAO
typeName
- - the type in the data dictionary.public Set<PermissionReference> getGrantingPermissions(PermissionReference permissionReference)
ModelDAO
getGrantingPermissions
in interface ModelDAO
permissionReference
- PermissionReferencepublic boolean checkPermission(PermissionReference required)
ModelDAO
checkPermission
in interface ModelDAO
required
- PermissionReferencepublic Set<PermissionReference> getGranteePermissions(PermissionReference permissionReference)
ModelDAO
getGranteePermissions
in interface ModelDAO
permissionReference
- PermissionReferencepublic Set<PermissionReference> getImmediateGranteePermissions(PermissionReference permissionReference)
ModelDAO
getImmediateGranteePermissions
in interface ModelDAO
permissionReference
- PermissionReferencepublic PermissionReference getPermissionReference(org.alfresco.service.namespace.QName qname, String permissionName)
ModelDAO
getPermissionReference
in interface ModelDAO
qname
- QNamepermissionName
- Stringpublic Set<PermissionReference> getRequiredPermissions(PermissionReference required, org.alfresco.service.namespace.QName qName, Set<org.alfresco.service.namespace.QName> aspectQNames, RequiredPermission.On on)
ModelDAO
getRequiredPermissions
in interface ModelDAO
required
- PermissionReferenceqName
- QNameon
- RequiredPermission.Onpublic Set<PermissionReference> getUnconditionalRequiredPermissions(PermissionReference required, RequiredPermission.On on)
getUnconditionalRequiredPermissions
in interface ModelDAO
public boolean isUnique(PermissionReference permissionReference)
ModelDAO
public Set<PermissionReference> getAllExposedPermissions()
ModelDAO
getAllExposedPermissions
in interface ModelDAO
public boolean hasFull(PermissionReference permissionReference)
ModelDAO
public Set<PermissionReference> getAllPermissions()
ModelDAO
getAllPermissions
in interface ModelDAO
Copyright © 2005–2017 Alfresco Software. All rights reserved.