|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.extensions.surf.util.AbstractLifecycleBean
org.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 |
| Field Summary |
|---|
| Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean |
|---|
log |
| Constructor Summary | |
|---|---|
PermissionModel()
Default constructor |
|
| Method Summary | |
|---|---|
void |
addPermissionModel(java.lang.String model)
Adds a permission model |
boolean |
checkPermission(PermissionReference required)
Is this permission refernece to a permission and not a permissoinSet? |
java.util.Set |
getAllExposedPermissions()
Get all exposed permissions (regardless of type exposure) |
java.util.Set |
getAllPermissions()
Get all exposed permissions (regardless of type exposure) |
java.util.Set |
getAllPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get the permissions that can be set for the given node. |
java.util.Set |
getAllPermissions(org.alfresco.service.namespace.QName type)
Get the permissions that can be set for the given type. |
java.util.Set |
getAllPermissions(org.alfresco.service.namespace.QName typeName,
java.util.Set 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 |
java.util.Set |
getExposedPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get the permissions that are exposed to be set for the given node. |
java.util.Set |
getExposedPermissions(org.alfresco.service.namespace.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. |
java.util.Set |
getImmediateGranteePermissions(PermissionReference permissionReference)
Get the permissions which are granted by the supplied permission. |
PermissionReference |
getPermissionReference(org.alfresco.service.namespace.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,
org.alfresco.service.namespace.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. |
java.util.Set |
getUnconditionalRequiredPermissions(PermissionReference required,
RequiredPermission.On on)
|
boolean |
hasFull(PermissionReference permissionReference)
Does this permission allow full control? |
boolean |
isUnique(PermissionReference permissionReference)
Does the permission reference have a unique name? |
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event)
Adds the model. |
protected void |
onShutdown(org.springframework.context.ApplicationEvent event)
No-op |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary service |
void |
setModel(java.lang.String model)
Set the model |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service |
| Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean |
|---|
getApplicationContext, onApplicationEvent, setApplicationContext |
| 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(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService - public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - protected void onBootstrap(org.springframework.context.ApplicationEvent event)
model.
onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBeanprotected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBeanpublic void addPermissionModel(java.lang.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 -
public java.util.Set getGlobalPermissionEntries()
ModelDAO
getGlobalPermissionEntries in interface ModelDAOpublic java.util.Map getPermissionSets()
public java.util.Set getAllPermissions(org.alfresco.service.namespace.QName type)
ModelDAO
getAllPermissions in interface ModelDAOtype - - the type in the data dictionary.
public java.util.Set getExposedPermissions(org.alfresco.service.namespace.QName type)
ModelDAO
getExposedPermissions in interface ModelDAOtype - - the type in the data dictionary.
public java.util.Set getAllPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
ModelDAO
getAllPermissions in interface ModelDAOpublic java.util.Set getExposedPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
ModelDAO
getExposedPermissions in interface ModelDAO
public java.util.Set getAllPermissions(org.alfresco.service.namespace.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 ModelDAOpublic java.util.Set getImmediateGranteePermissions(PermissionReference permissionReference)
ModelDAO
getImmediateGranteePermissions in interface ModelDAOpublic java.util.Set getAllPermissions()
ModelDAO
getAllPermissions in interface ModelDAO
public java.util.Set getRequiredPermissions(PermissionReference required,
org.alfresco.service.namespace.QName qName,
java.util.Set aspectQNames,
RequiredPermission.On on)
ModelDAO
getRequiredPermissions in interface ModelDAO
public java.util.Set getUnconditionalRequiredPermissions(PermissionReference required,
RequiredPermission.On on)
getUnconditionalRequiredPermissions in interface ModelDAOpublic boolean checkPermission(PermissionReference required)
ModelDAO
checkPermission in interface ModelDAO
public PermissionReference getPermissionReference(org.alfresco.service.namespace.QName qname,
java.lang.String permissionName)
ModelDAO
getPermissionReference in interface ModelDAOpublic boolean isUnique(PermissionReference permissionReference)
ModelDAO
isUnique in interface ModelDAOpublic java.util.Set getAllExposedPermissions()
ModelDAO
getAllExposedPermissions in interface ModelDAOpublic boolean hasFull(PermissionReference permissionReference)
ModelDAO
hasFull in interface ModelDAO
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||