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 Summary
Constructors -
Method Summary
Modifier 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, 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, 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, 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, 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, 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, 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
-
IxAccessController
public IxAccessController()
-
-
Method Details
-
hasAllPermission
public boolean hasAllPermission()Check if the current user has thejava.security.AllPermission.- Returns:
trueif the current user has theAllPermission, orfalseotherwise.
-
hasPermission
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- An arbitrary permission class name, e.g see the permissions derived fromIIntrexxPermission.p_strName- The permission name.p_strActions- The required actions.- Returns:
trueif the permission is granted, orfalseif the permission is denied or an error occurred.
-
hasMenuPermission
Check if we have the specified menu permission.- Parameters:
p_strId- The menu identifier.p_strActions- The requested actions, e.g.access, oradministration.- Returns:
trueif the permission is granted, orfalseif the permission is denied.- See Also:
-
hasApplicationPermission
Check 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, orfalseif the permission is denied.- See Also:
-
hasStartPagePermission
public 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, orfalseif 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, orfalseif the permission is denied.
-
hasDatagroupPermission
public 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, orfalseif the permission is denied or an error occurred.- See Also:
-
hasDatagroupPermission
public 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, ornull. Currently this parameter is being ignored.p_strActions- The requested datagroup actions.- Returns:
trueif the permission is granted, orfalseif the permission is denied or an error occurred.- See Also:
-
hasDatagroupPermissionFromPage
public 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, orfalseif the permission is denied or an error occurred.
-
hasOwnDatagroupPermissionFromPage
public boolean hasOwnDatagroupPermissionFromPage(de.uplanet.lucy.server.IProcessingContext p_ctx, 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 againstp_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, orfalseif the permission is denied or an error occurred.
-
hasOwnDatagroupPermissionFromPage
public boolean hasOwnDatagroupPermissionFromPage(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strRecId, 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 againstp_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, orfalseif the permission is denied or an error occurred.
-
hasSrcDatagroupPermissionAndTgtPageAccess
public 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, orfalseif the permission is denied or an error occurred.
- For the target parameters see
-
hasSrcDatagroupPermissionAndTgtPageAccess
public 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, orfalseif the permission is denied or an error occurred.
- For the target parameters see
-
hasSrcOwnDatagroupPermissionAndTgtPageAccess
public boolean hasSrcOwnDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.IProcessingContext p_ctx, 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 againstp_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, orfalseif the permission is denied or an error occurred.
- For the target parameters see
-
hasSrcOwnDatagroupPermissionAndTgtPageAccess
public boolean hasSrcOwnDatagroupPermissionAndTgtPageAccess(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strSrcRecId, 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 againstp_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, orfalseif the permission is denied or an error occurred.
- For the target parameters see
-
hasSrcOwnDatagroupPermissionAndTgtDatagroupPermission
public boolean hasSrcOwnDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.IProcessingContext p_ctx, 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 againstp_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, orfalseif the permission is denied or an error occurred.
-
hasSrcOwnDatagroupPermissionAndTgtDatagroupPermission
public boolean hasSrcOwnDatagroupPermissionAndTgtDatagroupPermission(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strSrcRecId, 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 againstp_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, orfalseif the permission is denied or an error occurred.
-
hasSrcDatagroupPermissionAndTgtDatagroupPermission
public 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, orfalseif the permission is denied or an error occurred.
- For the source parameters see
-
hasDatagroupReadOwnPermissionFromDatapickerControlName
public 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, orfalseif 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, orfalseotherwise.
-
hasMainPortalAdministrationPermission
public boolean hasMainPortalAdministrationPermission() -
hasDsUserPermission
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:
trueif the permission is granted, orfalseif the permission is denied or an error occurred.
-
hasDsSetPermission
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:
trueif the permission is granted, orfalseif the permission is denied or an error occurred.
-
hasDsContainerPermission
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:
trueif the permission is granted, orfalseif the permission is denied or an error occurred.
-
hasPositionAdministrationPermission
Checks 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, orfalseif the permission is denied or an error occurred.
-
hasToolsPermission
Deprecated.This permission does not exist anymore and cannot be patched.- Parameters:
p_strActions-- Returns:
- nothing
-
hasIntegrationCenterPermission
Deprecated.This permission does not exist anymore and cannot be patched.- Parameters:
p_strActions-- Returns:
- nothing
-
hasDataTransferPermission
Checks for the data transfer permission- Parameters:
p_strActions-- Returns:
- nothing
-