|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.security.permissions.impl.model.PermissionModel
public class PermissionModel
The implementation of the model DAO Reads and stores the top level model information Encapsulates access to this information
| Nested Class Summary | |
|---|---|
static class |
PermissionModel.RequiredKey
Cache key |
| Constructor Summary | |
|---|---|
PermissionModel()
Default constructor |
|
| Method Summary | |
|---|---|
void |
addPermissionModel(java.lang.String model)
Adds a permission model |
void |
afterPropertiesSet()
|
boolean |
checkPermission(PermissionReference required)
Is this permission refernece to a permission and not a permissoinSet? |
java.util.Set |
getAllPermissions(NodeRef nodeRef)
Get the permissions that can be set for the given node. |
java.util.Set |
getAllPermissions(QName type)
Get the permissions that can be set for the given type. |
java.util.Set |
getAllPermissions(QName typeName,
java.util.Set aspects)
Get the permissions that can be set for the given type. |
AccessStatus |
getDefaultPermission()
Set the default access status |
AccessStatus |
getDefaultPermission(PermissionReference pr)
Get the default acces status for the givne permission |
java.util.Set |
getExposedPermissions(NodeRef nodeRef)
Get the permissions that are exposed to be set for the given node. |
java.util.Set |
getExposedPermissions(QName type)
Get the permissions that are exposed to be set for the given type. |
java.util.Set |
getGlobalPermissionEntries()
Get the global permissions for the model. |
java.util.Set |
getGranteePermissions(PermissionReference permissionReference)
Get the permissions which are granted by the supplied permission. |
java.util.Set |
getGrantingPermissions(PermissionReference permissionReference)
Get all the permissions that grant this permission. |
PermissionReference |
getPermissionReference(QName qname,
java.lang.String permissionName)
Find a permission by name in the type context. |
java.util.Map |
getPermissionSets()
Get the permission sets by type |
java.util.Set |
getRequiredPermissions(PermissionReference required,
QName qName,
java.util.Set aspectQNames,
RequiredPermission.On on)
Get the permissions that must also be present on the node for the required permission to apply. |
boolean |
isUnique(PermissionReference permissionReference)
Does the permission reference have a unique name? |
void |
setDictionaryService(DictionaryService dictionaryService)
Set the dictionary service |
void |
setModel(java.lang.String model)
Set the model |
void |
setNodeService(NodeService nodeService)
Set the node service |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PermissionModel()
| Method Detail |
|---|
public void setModel(java.lang.String model)
model - public void setDictionaryService(DictionaryService dictionaryService)
dictionaryService - public void setNodeService(NodeService nodeService)
nodeService - public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void addPermissionModel(java.lang.String model)
model - path to the permission model to addpublic AccessStatus getDefaultPermission()
public AccessStatus getDefaultPermission(PermissionReference pr)
pr -
public java.util.Set getGlobalPermissionEntries()
ModelDAO
getGlobalPermissionEntries in interface ModelDAOpublic java.util.Map getPermissionSets()
public java.util.Set getAllPermissions(QName type)
ModelDAO
getAllPermissions in interface ModelDAOtype - - the type in the data dictionary.
public java.util.Set getExposedPermissions(QName type)
ModelDAO
getExposedPermissions in interface ModelDAOtype - - the type in the data dictionary.
public java.util.Set getAllPermissions(NodeRef nodeRef)
ModelDAO
getAllPermissions in interface ModelDAOpublic java.util.Set getExposedPermissions(NodeRef nodeRef)
ModelDAO
getExposedPermissions in interface ModelDAO
public java.util.Set getAllPermissions(QName typeName,
java.util.Set aspects)
ModelDAO
getAllPermissions in interface ModelDAOtypeName - - the type in the data dictionary.
public java.util.Set getGrantingPermissions(PermissionReference permissionReference)
ModelDAO
getGrantingPermissions in interface ModelDAOpublic java.util.Set getGranteePermissions(PermissionReference permissionReference)
ModelDAO
getGranteePermissions in interface ModelDAO
public java.util.Set getRequiredPermissions(PermissionReference required,
QName qName,
java.util.Set aspectQNames,
RequiredPermission.On on)
ModelDAO
getRequiredPermissions in interface ModelDAOpublic boolean checkPermission(PermissionReference required)
ModelDAO
checkPermission in interface ModelDAO
public PermissionReference getPermissionReference(QName qname,
java.lang.String permissionName)
ModelDAO
getPermissionReference in interface ModelDAOpublic boolean isUnique(PermissionReference permissionReference)
ModelDAO
isUnique in interface ModelDAO
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||