|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.bo.DataObjectAuthorizerBase
public class DataObjectAuthorizerBase
Constructor Summary | |
---|---|
DataObjectAuthorizerBase()
|
Method Summary | |
---|---|
protected void |
addPermissionDetails(Object primaryDataObjectOrDocument,
Map<String,String> attributes)
Override this method to populate the permission details from the primary data object or document. |
protected void |
addRoleQualification(Object primaryDataObjectOrDocument,
Map<String,String> attributes)
Override this method to populate the role qualifier attributes from the primary data object or document. |
protected Map<String,String> |
getPermissionDetailValues(Object primaryDataObjectOrDocument)
Returns a permission details map based off data from the primary business object or the document. |
protected static PermissionService |
getPermissionService()
|
protected static PersonService |
getPersonService()
|
protected Map<String,String> |
getRoleQualification(Object primaryDataObjectOrDocument,
String principalId)
Returns a role qualification map based off data from the primary business object or the document. |
boolean |
isAuthorized(Object dataObject,
String namespaceCode,
String permissionName,
String principalId)
Determines whether the user identified by the given principal ID has the given permission in the context of the data object |
boolean |
isAuthorized(Object dataObject,
String namespaceCode,
String permissionName,
String principalId,
Map<String,String> collectionOrFieldLevelPermissionDetails,
Map<String,String> collectionOrFieldLevelRoleQualification)
Determines whether the user identified by the given principal ID has the given permission in the context of the data object, the additional permission details and role qualifiers are used for the check |
boolean |
isAuthorizedByTemplate(Object dataObject,
String namespaceCode,
String permissionTemplateName,
String principalId)
Determines whether the user identified by the given principal ID has been granted a permission of the given template in the context of the data object |
boolean |
isAuthorizedByTemplate(Object dataObject,
String namespaceCode,
String permissionTemplateName,
String principalId,
Map<String,String> collectionOrFieldLevelPermissionDetails,
Map<String,String> collectionOrFieldLevelRoleQualification)
Determines whether the user identified by the given principal ID has been granted a permission of the given template in the context of the data object, the additional permission details and role qualifiers are used for the check |
protected boolean |
permissionExistsByTemplate(Object dataObject,
String namespaceCode,
String permissionTemplateName)
|
protected boolean |
permissionExistsByTemplate(Object dataObject,
String namespaceCode,
String permissionTemplateName,
Map<String,String> permissionDetails)
|
protected boolean |
permissionExistsByTemplate(String namespaceCode,
String permissionTemplateName,
Map<String,String> permissionDetails)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataObjectAuthorizerBase()
Method Detail |
---|
public final boolean isAuthorized(Object dataObject, String namespaceCode, String permissionName, String principalId)
DataObjectAuthorizer
isAuthorized
in interface DataObjectAuthorizer
DataObjectAuthorizer.isAuthorized(java.lang.Object, java.lang.String, java.lang.String, java.lang.String)
public final boolean isAuthorizedByTemplate(Object dataObject, String namespaceCode, String permissionTemplateName, String principalId)
DataObjectAuthorizer
isAuthorizedByTemplate
in interface DataObjectAuthorizer
DataObjectAuthorizer.isAuthorizedByTemplate(java.lang.Object, java.lang.String, java.lang.String,
java.lang.String)
public final boolean isAuthorized(Object dataObject, String namespaceCode, String permissionName, String principalId, Map<String,String> collectionOrFieldLevelPermissionDetails, Map<String,String> collectionOrFieldLevelRoleQualification)
DataObjectAuthorizer
isAuthorized
in interface DataObjectAuthorizer
DataObjectAuthorizer.isAuthorized(java.lang.Object, java.lang.String, java.lang.String, java.lang.String)
public final boolean isAuthorizedByTemplate(Object dataObject, String namespaceCode, String permissionTemplateName, String principalId, Map<String,String> collectionOrFieldLevelPermissionDetails, Map<String,String> collectionOrFieldLevelRoleQualification)
DataObjectAuthorizer
isAuthorizedByTemplate
in interface DataObjectAuthorizer
DataObjectAuthorizer.isAuthorizedByTemplate(java.lang.Object, java.lang.String, java.lang.String,
java.lang.String)
protected void addRoleQualification(Object primaryDataObjectOrDocument, Map<String,String> attributes)
primaryDataObjectOrDocument
- - the primary data object (i.e. the main object instance
behind the lookup result row or inquiry) or the documentattributes
- - role qualifiers will be added to this mapprotected void addPermissionDetails(Object primaryDataObjectOrDocument, Map<String,String> attributes)
primaryDataObjectOrDocument
- - the primary data object (i.e. the main object instance
behind the lookup result row or inquiry) or the documentattributes
- - permission details will be added to this mapprotected final boolean permissionExistsByTemplate(Object dataObject, String namespaceCode, String permissionTemplateName)
protected final boolean permissionExistsByTemplate(String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails)
protected final boolean permissionExistsByTemplate(Object dataObject, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails)
protected final Map<String,String> getRoleQualification(Object primaryDataObjectOrDocument, String principalId)
primaryDataObjectOrDocument
- the primary data object (i.e. the main object instance behind
the lookup result row or inquiry) or the document
protected final Map<String,String> getPermissionDetailValues(Object primaryDataObjectOrDocument)
primaryDataObjectOrDocument
- the primary data object (i.e. the main object instance behind
the lookup result row or inquiry) or the document
protected static PermissionService getPermissionService()
protected static PersonService getPersonService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |