Class IxAccessController
java.lang.Object
de.uplanet.lucy.server.auxiliaries.security.IxAccessController
This class can be used to check arbitrary permissions.
 
For Intrexx permissions see the classes that are derived from
 IIntrexxPermission.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCheck if the current user has thejava.security.AllPermission.booleanhasApplicationPermission(String p_strAppGuid, String p_strActions) Check if we have the specified application permission.booleanhasDatagroupPermission(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strDgGuid, String p_strActions) This method actually callsIRtApp.hasDgPermission(String, String)for the given application and datagroup.booleanhasDatagroupPermission(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strDgGuid, String p_strRecId, String p_strActions) This method actually callsIRtApp.hasDgPermission(String, String)for the given application and datagroup.booleanhasDatagroupPermissionFromPage(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strPageGuid, String p_strActions) This method actually callsIRtApp.hasDgPermissionFromPage(String, String)for the given application, page and datagroup actions.booleanhasDatagroupReadOwnPermissionFromDatapickerControlName(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strPageGuid, String p_strDatapickerGuid) Check if we haveread-ownpermissions on the datagroup that's associated with the given datapicker.booleanhasDataTransferPermission(String p_strActions) Checks for the data transfer permissionbooleanhasDsContainerPermission(String p_strName, String p_strActions) Checks if we have the permission for the administration of containers.booleanhasDsSetPermission(String p_strName, String p_strActions) Checks if we have the permission for set administration.booleanhasDsUserPermission(String p_strName, String p_strActions) Checks if we have the permission for user administration.booleanhasFileWalkerControlPermission(String p_strControlGuid, String p_strActions) booleanhasIntegrationCenterPermission(String p_strActions) Deprecated.booleanbooleanhasMenuPermission(String p_strId, String p_strActions) Check if we have the specified menu permission.booleanhasOwnDatagroupPermissionFromPage(de.uplanet.lucy.server.IProcessingContext p_ctx, de.uplanet.lucy.server.usermanager.IUser p_user, int p_iRecordUserId, String p_strAppGuid, String p_strPageGuid, String p_strActions) This method actually calls_hasDatagroupPermissionFromPage(IRtApp, IUser, int, String, String, String).booleanhasOwnDatagroupPermissionFromPage(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strRecId, de.uplanet.lucy.server.usermanager.IUser p_user, int p_iRecordUserId, String p_strAppGuid, String p_strPageGuid, String p_strActions) This method actually calls_hasDatagroupPermissionFromPage(IRtApp, IUser, int, String, String, String).booleanhasPagePermission(String p_strAppGuid, String p_strPageGuid, String p_strActions) Check if we have access permission for the given application. Check if we have the requested page permission.booleanhasPermission(String p_strPermissionClass, String p_strName, String p_strActions) Check if we have a certain permission.booleanhasPositionAdministrationPermission(String p_strName) Checks if we have the permission for the administration of organizational positions.booleanhasSrcDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, String p_strTgtActions) For the source parameters seeIRtApp.hasDgPermissionFromPage(String, String). For the target parameters seeIRtApp.hasDgPermissionFromPage(String, String).booleanhasSrcDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, String p_strTgtActions) For the target parameters seehasPagePermission(String, String, String). For the source parameters seeIRtApp.hasDgPermissionFromPage(String, String).booleanhasSrcDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strSrcRecId, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, String p_strTgtActions) For the target parameters seehasPagePermission(String, String, String). For the source parameters seeIRtApp.hasDgPermissionFromPage(String, String).booleanhasSrcOwnDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.IProcessingContext p_ctx, de.uplanet.lucy.server.usermanager.IUser p_user, int p_iRecordUserId, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, String p_strTgtActions) booleanhasSrcOwnDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strSrcRecId, de.uplanet.lucy.server.usermanager.IUser p_user, int p_iRecordUserId, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, String p_strTgtActions) booleanhasSrcOwnDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.IProcessingContext p_ctx, de.uplanet.lucy.server.usermanager.IUser p_user, int p_iRecordUserId, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, String p_strTgtActions) For the target parameters seehasPagePermission(String, String, String). For the user and source parameters see_hasDatagroupPermissionFromPage(IRtApp, IUser, int, String, String, String).booleanhasSrcOwnDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strSrcRecId, de.uplanet.lucy.server.usermanager.IUser p_user, int p_iRecordUserId, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, String p_strTgtActions) For the target parameters seehasPagePermission(String, String, String). For the user and source parameters see_hasDatagroupPermissionFromPage(IRtApp, IUser, int, String, String, String).booleanhasStartPagePermission(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strActions) Check if we have access permission for the given application. Check if we have the requested permission at the application's start page.booleanhasToolsPermission(String p_strActions) Deprecated.
- 
Constructor Details- 
IxAccessControllerpublic IxAccessController()
 
- 
- 
Method Details- 
hasAllPermissionpublic boolean hasAllPermission()Check if the current user has thejava.security.AllPermission.- Returns:
- trueif the current user has the- AllPermission, or- falseotherwise.
 
- 
hasPermissionCheck 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- An arbitrary permission class name, e.g see the permissions derived from- IIntrexxPermission.
- p_strName- The permission name.
- p_strActions- The required actions.
- Returns:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- 
hasMenuPermissionCheck if we have the specified menu permission.- Parameters:
- p_strId- The menu identifier.
- p_strActions- The requested actions, e.g.- access, or- administration.
- Returns:
- trueif the permission is granted, or- falseif the permission is denied.
- See Also:
 
- 
hasApplicationPermissionCheck if we have the specified application permission.- Parameters:
- p_strAppGuid- The application's unique identifier.
- p_strActions- The requested page actions.
- Returns:
- trueif the permission is granted, or- falseif the permission is denied.
- See Also:
 
- 
hasStartPagePermissionpublic boolean hasStartPagePermission(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strActions) - Check if we have access permission for the given application.
- Check if we have the requested permission at the application's start page.
 - Parameters:
- p_ctx- The processing context.
- p_strAppGuid- The unique application identifier.
- p_strActions- The required actions.
- Returns:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- 
hasPagePermission- Check if we have access permission for the given application.
- Check if we have the requested page permission.
 - Parameters:
- p_strAppGuid- The unique application identifier.
- p_strPageGuid- The unique page identifier.
- p_strActions- The requested page actions.
- Returns:
- trueif the permission is granted, or- falseif the permission is denied.
 
- 
hasDatagroupPermissionpublic boolean hasDatagroupPermission(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strDgGuid, String p_strActions) This method actually callsIRtApp.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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
- See Also:
 
- 
hasDatagroupPermissionpublic boolean hasDatagroupPermission(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strDgGuid, String p_strRecId, String p_strActions) This method actually callsIRtApp.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 ID of the data record, or- null. Currently this parameter is being ignored.
- p_strActions- The requested datagroup actions.
- Returns:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
- See Also:
 
- 
hasDatagroupPermissionFromPagepublic boolean hasDatagroupPermissionFromPage(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strPageGuid, String p_strActions) This method actually callsIRtApp.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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- 
hasOwnDatagroupPermissionFromPagepublic boolean hasOwnDatagroupPermissionFromPage(de.uplanet.lucy.server.IProcessingContext p_ctx, de.uplanet.lucy.server.usermanager.IUser p_user, int p_iRecordUserId, String p_strAppGuid, String p_strPageGuid, 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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- 
hasOwnDatagroupPermissionFromPagepublic boolean hasOwnDatagroupPermissionFromPage(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strRecId, de.uplanet.lucy.server.usermanager.IUser p_user, int p_iRecordUserId, String p_strAppGuid, String p_strPageGuid, 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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- 
hasSrcDatagroupPermissionAndTgtPageAccesspublic boolean hasSrcDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, String p_strTgtActions) - For the target parameters see hasPagePermission(String, String, String).
- For the source parameters see IRtApp.hasDgPermissionFromPage(String, String).
 - 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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- For the target parameters see 
- 
hasSrcDatagroupPermissionAndTgtPageAccesspublic boolean hasSrcDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strSrcRecId, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, String p_strTgtActions) - For the target parameters see hasPagePermission(String, String, String).
- For the source parameters see IRtApp.hasDgPermissionFromPage(String, String).
 - 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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- For the target parameters see 
- 
hasSrcOwnDatagroupPermissionAndTgtPageAccesspublic boolean hasSrcOwnDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.IProcessingContext p_ctx, de.uplanet.lucy.server.usermanager.IUser p_user, int p_iRecordUserId, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, String p_strTgtActions) - For the target parameters see hasPagePermission(String, String, String).
- For the user and source parameters see
 _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_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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- For the target parameters see 
- 
hasSrcOwnDatagroupPermissionAndTgtPageAccesspublic boolean hasSrcOwnDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strSrcRecId, de.uplanet.lucy.server.usermanager.IUser p_user, int p_iRecordUserId, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, String p_strTgtActions) - For the target parameters see hasPagePermission(String, String, String).
- For the user and source parameters see
 _hasDatagroupPermissionFromPage(IRtApp, IUser, int, String, String, String).
 - 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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- For the target parameters see 
- 
hasSrcOwnDatagroupPermissionAndTgtDatagroupPermissionpublic boolean hasSrcOwnDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.IProcessingContext p_ctx, de.uplanet.lucy.server.usermanager.IUser p_user, int p_iRecordUserId, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, 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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- 
hasSrcOwnDatagroupPermissionAndTgtDatagroupPermissionpublic boolean hasSrcOwnDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strSrcRecId, de.uplanet.lucy.server.usermanager.IUser p_user, int p_iRecordUserId, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, 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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- 
hasSrcDatagroupPermissionAndTgtDatagroupPermissionpublic boolean hasSrcDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strSrcAppGuid, String p_strSrcPageGuid, String p_strSrcActions, String p_strTgtAppGuid, String p_strTgtPageGuid, String p_strTgtActions) - For the source parameters see IRtApp.hasDgPermissionFromPage(String, String).
- For the target parameters see IRtApp.hasDgPermissionFromPage(String, String).
 - 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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- For the source parameters see 
- 
hasDatagroupReadOwnPermissionFromDatapickerControlNamepublic boolean hasDatagroupReadOwnPermissionFromDatapickerControlName(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strPageGuid, String p_strDatapickerGuid) Check if we haveread-ownpermissions 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:
- trueif the permission is granted, or- falseif the permission is denied.
 
- 
hasFileWalkerControlPermission- Parameters:
- p_strControlGuid- The FileWalker control's unique identifier.
- p_strActions- The requested actions.
- Returns:
- trueif the permission is granted, or- falseotherwise.
 
- 
hasMainPortalAdministrationPermissionpublic boolean hasMainPortalAdministrationPermission()
- 
hasDsUserPermissionChecks 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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- 
hasDsSetPermissionChecks 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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- 
hasDsContainerPermissionChecks 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:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- 
hasPositionAdministrationPermissionChecks if we have the permission for the administration of organizational positions.- Parameters:
- p_strName- The organizational position's unique identifier, or- Returns:
- trueif the permission is granted, or- falseif the permission is denied or an error occurred.
 
- 
hasToolsPermissionDeprecated.This permission does not exist anymore and cannot be patched.- Parameters:
- p_strActions-
- Returns:
- nothing
 
- 
hasIntegrationCenterPermissionDeprecated.This permission does not exist anymore and cannot be patched.- Parameters:
- p_strActions-
- Returns:
- nothing
 
- 
hasDataTransferPermissionChecks for the data transfer permission- Parameters:
- p_strActions-
- Returns:
- nothing
 
 
-