de.uplanet.lucy.server.auxiliaries.security
Class IxAccessController

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.security.IxAccessController

@VelocityCallable(value="singleton")
public final class IxAccessController
extends java.lang.Object

Version:
$Revision: 79611 $

Constructor Summary
IxAccessController()
           
 
Method Summary
 boolean hasApplicationPermission(java.lang.String p_strAppGuid, java.lang.String p_strActions)
          Check if we have the specified application permission.
 boolean hasDatagroupPermission(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, java.lang.String p_strAppGuid, java.lang.String p_strDgGuid, java.lang.String p_strActions)
          This method actually calls IRtApp.hasDgPermission(String, String) for the given application and datagroup.
 boolean hasDatagroupPermission(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, java.lang.String p_strAppGuid, java.lang.String p_strDgGuid, java.lang.String p_strRecId, java.lang.String p_strActions)
          This method actually calls IRtApp.hasDgPermission(String, String) for the given application and datagroup.
 boolean hasDatagroupPermissionFromPage(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, java.lang.String p_strAppGuid, java.lang.String p_strPageGuid, java.lang.String p_strActions)
          This method actually calls IRtApp.hasDgPermissionFromPage(String, String) for the given application, page and datagroup actions.
 boolean hasDatagroupReadOwnPermissionFromDatapickerControlName(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, java.lang.String p_strAppGuid, java.lang.String p_strPageGuid, java.lang.String p_strDatapickerGuid)
          Check if we have read-own permissions on the datagroup that's associated with the given datapicker.
 boolean hasDsContainerPermission(java.lang.String p_strName, java.lang.String p_strActions)
          Checks if we have the permission for the administration of containers.
 boolean hasDsSetPermission(java.lang.String p_strName, java.lang.String p_strActions)
          Checks if we have the permission for set administration.
 boolean hasDsUserPermission(java.lang.String p_strName, java.lang.String p_strActions)
          Checks if we have the permission for user administration.
 boolean hasFileWalkerControlPermission(java.lang.String p_strControlGuid, java.lang.String p_strActions)
           
 boolean hasIntegrationCenterPermission(java.lang.String p_strActions)
           
 boolean hasMainPortalAdministrationPermission()
           
 boolean hasOwnDatagroupPermissionFromPage(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, IUser p_user, int p_iRecordUserId, java.lang.String p_strAppGuid, java.lang.String p_strPageGuid, java.lang.String p_strActions)
          This method actually calls _hasDatagroupPermissionFromPage(IRtApp, IUser, int, String, String, String).
 boolean hasOwnDatagroupPermissionFromPage(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, java.lang.String p_strRecId, IUser p_user, int p_iRecordUserId, java.lang.String p_strAppGuid, java.lang.String p_strPageGuid, java.lang.String p_strActions)
          This method actually calls _hasDatagroupPermissionFromPage(IRtApp, IUser, int, String, String, String).
 boolean hasPagePermission(java.lang.String p_strAppGuid, java.lang.String p_strPageGuid, java.lang.String p_strActions)
           Check if we have access permission for the given application.
 boolean hasPermission(java.lang.String p_strPermissionClass, java.lang.String p_strName, java.lang.String p_strActions)
          Check if we have a certain permission.
 boolean hasPositionAdministrationPermission(java.lang.String p_strName)
          Checks if we have the permission for the administration of organizational positions.
 boolean hasSrcDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, java.lang.String p_strSrcAppGuid, java.lang.String p_strSrcPageGuid, java.lang.String p_strSrcActions, java.lang.String p_strTgtAppGuid, java.lang.String p_strTgtPageGuid, java.lang.String p_strTgtActions)
           For the source parameters see IRtApp.hasDgPermissionFromPage(String, String).
 boolean hasSrcDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, java.lang.String p_strSrcAppGuid, java.lang.String p_strSrcPageGuid, java.lang.String p_strSrcActions, java.lang.String p_strTgtAppGuid, java.lang.String p_strTgtPageGuid, java.lang.String p_strTgtActions)
           For the target parameters see hasPagePermission(String, String, String).
 boolean hasSrcDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, java.lang.String p_strSrcRecId, java.lang.String p_strSrcAppGuid, java.lang.String p_strSrcPageGuid, java.lang.String p_strSrcActions, java.lang.String p_strTgtAppGuid, java.lang.String p_strTgtPageGuid, java.lang.String p_strTgtActions)
           For the target parameters see hasPagePermission(String, String, String).
 boolean hasSrcOwnDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, IUser p_user, int p_iRecordUserId, java.lang.String p_strSrcAppGuid, java.lang.String p_strSrcPageGuid, java.lang.String p_strSrcActions, java.lang.String p_strTgtAppGuid, java.lang.String p_strTgtPageGuid, java.lang.String p_strTgtActions)
           
 boolean hasSrcOwnDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, java.lang.String p_strSrcRecId, IUser p_user, int p_iRecordUserId, java.lang.String p_strSrcAppGuid, java.lang.String p_strSrcPageGuid, java.lang.String p_strSrcActions, java.lang.String p_strTgtAppGuid, java.lang.String p_strTgtPageGuid, java.lang.String p_strTgtActions)
           
 boolean hasSrcOwnDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, IUser p_user, int p_iRecordUserId, java.lang.String p_strSrcAppGuid, java.lang.String p_strSrcPageGuid, java.lang.String p_strSrcActions, java.lang.String p_strTgtAppGuid, java.lang.String p_strTgtPageGuid, java.lang.String p_strTgtActions)
           For the target parameters see hasPagePermission(String, String, String).
 boolean hasSrcOwnDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, java.lang.String p_strSrcRecId, IUser p_user, int p_iRecordUserId, java.lang.String p_strSrcAppGuid, java.lang.String p_strSrcPageGuid, java.lang.String p_strSrcActions, java.lang.String p_strTgtAppGuid, java.lang.String p_strTgtPageGuid, java.lang.String p_strTgtActions)
           For the target parameters see hasPagePermission(String, String, String).
 boolean hasStartPagePermission(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, java.lang.String p_strAppGuid, java.lang.String p_strActions)
           Check if we have access permission for the given application.
 boolean hasToolsPermission(java.lang.String p_strActions)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IxAccessController

public IxAccessController()
Method Detail

hasPermission

public boolean hasPermission(java.lang.String p_strPermissionClass,
                             java.lang.String p_strName,
                             java.lang.String p_strActions)
Check if we have a certain permission. This method directly calls the policy that's currently in effect, without involving any business logic layer objects.

Parameters:
p_strPermissionClass - The permission class.
p_strName - The permission name.
p_strActions - The required actions.
Returns:
true if the permission is granted,or false if the permission is denied or an error occurred.

hasApplicationPermission

public boolean hasApplicationPermission(java.lang.String p_strAppGuid,
                                        java.lang.String p_strActions)
Check if we have the specified application permission.

Parameters:
p_strAppGuid - The application's unique identifier.
p_strActions - The requested page actions.
Returns:
true if the permission is granted, or false if the permission is denied.

hasStartPagePermission

public boolean hasStartPagePermission(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                      java.lang.String p_strAppGuid,
                                      java.lang.String p_strActions)

Parameters:
p_ctx - The processing context.
p_strAppGuid - The unique application identifier.
p_strActions - The required actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasPagePermission

public boolean hasPagePermission(java.lang.String p_strAppGuid,
                                 java.lang.String p_strPageGuid,
                                 java.lang.String p_strActions)

Parameters:
p_strAppGuid - The unique application identifier.
p_strPageGuid - The unique page identifier.
p_strActions - The requested page actions.
Returns:
true if the permission is granted, or false if the permission is denied.

hasDatagroupPermission

public boolean hasDatagroupPermission(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                      java.lang.String p_strAppGuid,
                                      java.lang.String p_strDgGuid,
                                      java.lang.String p_strActions)
This method actually calls IRtApp.hasDgPermission(String, String) for the given application and datagroup.

Parameters:
p_ctx - The processing context.
p_strAppGuid - The unique application identifier.
p_strDgGuid - The unique datagroup identifier.
p_strActions - The requested datagroup actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasDatagroupPermission

public boolean hasDatagroupPermission(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                      java.lang.String p_strAppGuid,
                                      java.lang.String p_strDgGuid,
                                      java.lang.String p_strRecId,
                                      java.lang.String p_strActions)
This method actually calls IRtApp.hasDgPermission(String, String) for the given application and datagroup.

Parameters:
p_ctx - The processing context.
p_strAppGuid - The unique application identifier.
p_strDgGuid - The unique datagroup identifier.
p_strRecId - The current record Id to check, can be null.
p_strActions - The requested datagroup actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasDatagroupPermissionFromPage

public boolean hasDatagroupPermissionFromPage(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                              java.lang.String p_strAppGuid,
                                              java.lang.String p_strPageGuid,
                                              java.lang.String p_strActions)
This method actually calls IRtApp.hasDgPermissionFromPage(String, String) for the given application, page and datagroup actions.

Parameters:
p_ctx - The processing context.
p_strAppGuid - The unique application identifier.
p_strPageGuid - The unique page identifier.
p_strActions - The requested datagroup actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasOwnDatagroupPermissionFromPage

public boolean hasOwnDatagroupPermissionFromPage(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                                 IUser p_user,
                                                 int p_iRecordUserId,
                                                 java.lang.String p_strAppGuid,
                                                 java.lang.String p_strPageGuid,
                                                 java.lang.String p_strActions)
This method actually calls _hasDatagroupPermissionFromPage(IRtApp, IUser, int, String, String, String).

Parameters:
p_ctx - The processing context.
p_user - The user to be matched against p_iRecordUserId.
p_iRecordUserId - The integer identifier of the user that owns the record.
p_strAppGuid - The unique application identifier.
p_strPageGuid - The unique page identifier.
p_strActions - The requested datagroup actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasOwnDatagroupPermissionFromPage

public boolean hasOwnDatagroupPermissionFromPage(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                                 java.lang.String p_strRecId,
                                                 IUser p_user,
                                                 int p_iRecordUserId,
                                                 java.lang.String p_strAppGuid,
                                                 java.lang.String p_strPageGuid,
                                                 java.lang.String p_strActions)
This method actually calls _hasDatagroupPermissionFromPage(IRtApp, IUser, int, String, String, String).

Parameters:
p_ctx - The processing context.
p_strRecId - The current record id to check, can be null.
p_user - The user to be matched against p_iRecordUserId.
p_iRecordUserId - The integer identifier of the user that owns the record.
p_strAppGuid - The unique application identifier.
p_strPageGuid - The unique page identifier.
p_strActions - The requested datagroup actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasSrcDatagroupPermissionAndTgtPageAccess

public boolean hasSrcDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                                         java.lang.String p_strSrcAppGuid,
                                                         java.lang.String p_strSrcPageGuid,
                                                         java.lang.String p_strSrcActions,
                                                         java.lang.String p_strTgtAppGuid,
                                                         java.lang.String p_strTgtPageGuid,
                                                         java.lang.String p_strTgtActions)

Parameters:
p_ctx - The processing context.
p_strSrcAppGuid - The source application's unique identifier.
p_strSrcPageGuid - The source page's unique identifier.
p_strSrcActions - The requested source datagroup actions.
p_strTgtAppGuid - The target application's unique identifier.
p_strTgtPageGuid - The target page's unique identifier.
p_strTgtActions - The requested target page actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasSrcDatagroupPermissionAndTgtPageAccess

public boolean hasSrcDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                                         java.lang.String p_strSrcRecId,
                                                         java.lang.String p_strSrcAppGuid,
                                                         java.lang.String p_strSrcPageGuid,
                                                         java.lang.String p_strSrcActions,
                                                         java.lang.String p_strTgtAppGuid,
                                                         java.lang.String p_strTgtPageGuid,
                                                         java.lang.String p_strTgtActions)

Parameters:
p_ctx - The processing context.
p_strSrcRecId - The current source record id to check, can be null.
p_strSrcAppGuid - The source application's unique identifier.
p_strSrcPageGuid - The source page's unique identifier.
p_strSrcActions - The requested source datagroup actions.
p_strTgtAppGuid - The target application's unique identifier.
p_strTgtPageGuid - The target page's unique identifier.
p_strTgtActions - The requested target page actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasSrcOwnDatagroupPermissionAndTgtPageAccess

public boolean hasSrcOwnDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                                            IUser p_user,
                                                            int p_iRecordUserId,
                                                            java.lang.String p_strSrcAppGuid,
                                                            java.lang.String p_strSrcPageGuid,
                                                            java.lang.String p_strSrcActions,
                                                            java.lang.String p_strTgtAppGuid,
                                                            java.lang.String p_strTgtPageGuid,
                                                            java.lang.String p_strTgtActions)

Parameters:
p_ctx - The processing context.
p_user - The user to be matched against p_iRecordUserId.
p_iRecordUserId - The integer identifier of the user that owns the record.
p_strSrcAppGuid - The source application's unique identifier.
p_strSrcPageGuid - The source page's unique identifier.
p_strSrcActions - The requested source datagroup actions.
p_strTgtAppGuid - The target application's unique identifier.
p_strTgtPageGuid - The target page's unique identifier.
p_strTgtActions - The requested target page actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasSrcOwnDatagroupPermissionAndTgtPageAccess

public boolean hasSrcOwnDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                                            java.lang.String p_strSrcRecId,
                                                            IUser p_user,
                                                            int p_iRecordUserId,
                                                            java.lang.String p_strSrcAppGuid,
                                                            java.lang.String p_strSrcPageGuid,
                                                            java.lang.String p_strSrcActions,
                                                            java.lang.String p_strTgtAppGuid,
                                                            java.lang.String p_strTgtPageGuid,
                                                            java.lang.String p_strTgtActions)

Parameters:
p_ctx - The processing context.
p_strSrcRecId - The current source record id to check, can be null.
p_user - The user to be matched against p_iRecordUserId.
p_iRecordUserId - The integer identifier of the user that owns the record.
p_strSrcAppGuid - The source application's unique identifier.
p_strSrcPageGuid - The source page's unique identifier.
p_strSrcActions - The requested source datagroup actions.
p_strTgtAppGuid - The target application's unique identifier.
p_strTgtPageGuid - The target page's unique identifier.
p_strTgtActions - The requested target page actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasSrcOwnDatagroupPermissionAndTgtDatagroupPermission

public boolean hasSrcOwnDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                                                     IUser p_user,
                                                                     int p_iRecordUserId,
                                                                     java.lang.String p_strSrcAppGuid,
                                                                     java.lang.String p_strSrcPageGuid,
                                                                     java.lang.String p_strSrcActions,
                                                                     java.lang.String p_strTgtAppGuid,
                                                                     java.lang.String p_strTgtPageGuid,
                                                                     java.lang.String p_strTgtActions)
Parameters:
p_ctx - The processing context.
p_user - The user to be matched against p_iRecordUserId.
p_iRecordUserId - The integer identifier of the user that owns the record.
p_strSrcAppGuid - The source application's unique identifier.
p_strSrcPageGuid - The source page's unique identifier.
p_strSrcActions - The requested source datagroup actions.
p_strTgtAppGuid - The target application's unique identifier.
p_strTgtPageGuid - The target page's unique identifier.
p_strTgtActions - The requested target datagroup actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasSrcOwnDatagroupPermissionAndTgtDatagroupPermission

public boolean hasSrcOwnDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                                                     java.lang.String p_strSrcRecId,
                                                                     IUser p_user,
                                                                     int p_iRecordUserId,
                                                                     java.lang.String p_strSrcAppGuid,
                                                                     java.lang.String p_strSrcPageGuid,
                                                                     java.lang.String p_strSrcActions,
                                                                     java.lang.String p_strTgtAppGuid,
                                                                     java.lang.String p_strTgtPageGuid,
                                                                     java.lang.String p_strTgtActions)
Parameters:
p_ctx - The processing context.
p_strSrcRecId - The current source record id to check, can be null.
p_user - The user to be matched against p_iRecordUserId.
p_iRecordUserId - The integer identifier of the user that owns the record.
p_strSrcAppGuid - The source application's unique identifier.
p_strSrcPageGuid - The source page's unique identifier.
p_strSrcActions - The requested source datagroup actions.
p_strTgtAppGuid - The target application's unique identifier.
p_strTgtPageGuid - The target page's unique identifier.
p_strTgtActions - The requested target datagroup actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasSrcDatagroupPermissionAndTgtDatagroupPermission

public boolean hasSrcDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                                                  java.lang.String p_strSrcAppGuid,
                                                                  java.lang.String p_strSrcPageGuid,
                                                                  java.lang.String p_strSrcActions,
                                                                  java.lang.String p_strTgtAppGuid,
                                                                  java.lang.String p_strTgtPageGuid,
                                                                  java.lang.String p_strTgtActions)

Parameters:
p_ctx - The processing context.
p_strSrcAppGuid - The source application's unique identifier.
p_strSrcPageGuid - The source page's unique identifier.
p_strSrcActions - The requested source datagroup actions.
p_strTgtAppGuid - The target application's unique identifier.
p_strTgtPageGuid - The target page's unique identifier.
p_strTgtActions - The requested target datagroup actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasDatagroupReadOwnPermissionFromDatapickerControlName

public boolean hasDatagroupReadOwnPermissionFromDatapickerControlName(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                                                      java.lang.String p_strAppGuid,
                                                                      java.lang.String p_strPageGuid,
                                                                      java.lang.String p_strDatapickerGuid)
Check if we have read-own permissions on the datagroup that's associated with the given datapicker.

Parameters:
p_ctx - The processing context.
p_strAppGuid - The application's unique identifier.
p_strPageGuid - The page's unique identifier.
p_strDatapickerGuid - The datapicker control's name.
Returns:
true if the permission is granted, or false if the permission is denied.

hasFileWalkerControlPermission

public boolean hasFileWalkerControlPermission(java.lang.String p_strControlGuid,
                                              java.lang.String p_strActions)
Parameters:
p_strControlGuid - The FileWalker control's unique identifier.
p_strActions - The requested actions.
Returns:
true if the permission is granted, or false otherwise.

hasMainPortalAdministrationPermission

public boolean hasMainPortalAdministrationPermission()

hasToolsPermission

public boolean hasToolsPermission(java.lang.String p_strActions)

hasIntegrationCenterPermission

public boolean hasIntegrationCenterPermission(java.lang.String p_strActions)

hasDsUserPermission

public boolean hasDsUserPermission(java.lang.String p_strName,
                                   java.lang.String p_strActions)
Checks if we have the permission for user administration.

Parameters:
p_strName - The user's unique identifier, or <all users>.
p_strActions - The requested actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasDsSetPermission

public boolean hasDsSetPermission(java.lang.String p_strName,
                                  java.lang.String p_strActions)
Checks if we have the permission for set administration.

Parameters:
p_strName - The set's unique identifier, or <all sets>.
p_strActions - The requested actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasDsContainerPermission

public boolean hasDsContainerPermission(java.lang.String p_strName,
                                        java.lang.String p_strActions)
Checks if we have the permission for the administration of containers.

Parameters:
p_strName - The container's unique identifier, or <all containers>.
p_strActions - The requested actions.
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.

hasPositionAdministrationPermission

public boolean hasPositionAdministrationPermission(java.lang.String p_strName)
Checks if we have the permission for the administration of organizational positions.

Parameters:
p_strName - The organizational position's unique identifier, or .
Returns:
true if the permission is granted, or false if the permission is denied or an error occurred.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.