org.apache.portals.graffito.services.core
Interface ContentPermissionService

All Superinterfaces:
org.apache.jetspeed.security.PermissionManager

public interface ContentPermissionService
extends org.apache.jetspeed.security.PermissionManager

Extends the Jetspeed 2 Permission manager in order to manager permission on cms objects

Version:
$Id: Exp $
Author:
Lombart Christophe

Method Summary
 CmsPermission createPermission(java.lang.String name, java.lang.String actions)
          Factory to create a new cms permission object.
 java.security.Permissions getPermissions(CmsObject cmsObject)
          Get all permissions defined for a cms objects
 java.security.Permissions getPermissions(java.lang.String uri)
          Get all permissions defined for a cms objects
 void grantPermission(java.lang.String principalFullPath, CmsPermission permission)
          Grant a CmsPermission to a principal
 
Methods inherited from interface org.apache.jetspeed.security.PermissionManager
addPermission, checkPermission, getPermissions, getPermissions, grantPermission, permissionExists, removePermission, removePermissions, revokePermission
 

Method Detail

createPermission

CmsPermission createPermission(java.lang.String name,
                               java.lang.String actions)
                               throws ContentManagementException
Factory to create a new cms permission object.

Parameters:
name - the permission name
actions - The authorised actions
Returns:
an empty factory created permission.
Throws:
ContentManagementException

getPermissions

java.security.Permissions getPermissions(CmsObject cmsObject)
Get all permissions defined for a cms objects

Parameters:
cmsObject - the cms object
Returns:
the permissions found

getPermissions

java.security.Permissions getPermissions(java.lang.String uri)
Get all permissions defined for a cms objects

Parameters:
uri - the cms object uri
Returns:
the permissions found

grantPermission

void grantPermission(java.lang.String principalFullPath,
                     CmsPermission permission)
                     throws ContentManagementException
Grant a CmsPermission to a principal

Parameters:
principalFullPath - the principal full path (eg. /roles/admin)
permission - The permission to set
Throws:
ContentManagementException


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.