Package com.axemble.vdoc.sdk.interfaces
Interface ISecurityController
- All Superinterfaces:
IController
,Serializable
- All Known Implementing Classes:
CoreSecurityController
,PortalSecurityController
This class allows to check, allow or deny permissions on objects that implement
ISecuritySupport
interface.- Since:
- 1.0, 15/04/2008
- Author:
- vlygeros
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Deprecated.static interface
Security permission flagsstatic interface
Deprecated.static interface
Security permission levelsstatic interface
Scopes filters -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
Joker for any unauthenticated userstatic final int
Joker for any authenticated user -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPermission
(int joker, int permissionLevel) Adds a special permissionvoid
addPermission
(int joker, int permissionLevel, int... flags) Adds a special permissionvoid
addPermission
(int joker, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Adds a special permission and allows to specify localization and organization scopes.void
addPermission
(int joker, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds a special permission and allows to specify localization and organization scopes.void
addPermission
(int joker, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Adds a special permissionvoid
addPermission
(int joker, IResourceDefinition storageDefinition, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds a special permissionvoid
addPermission
(int joker, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Adds a special permissionvoid
addPermission
(int joker, Class<? extends ISecuritySupport> securityType, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds a special permissionvoid
addPermission
(int joker, Object right) Deprecated.: use addPermission( int joker, int permissionLevel, int...void
addPermission
(IGroup group, int permissionLevel) Adds access permissions to a groupvoid
addPermission
(IGroup group, int permissionLevel, int... flags) Adds access permissions to a groupvoid
addPermission
(IGroup group, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Adds access permissions to a group and allows to specify localization and organization scopes.void
addPermission
(IGroup group, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a group and allows to specify localization and organization scopes.void
addPermission
(IGroup group, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Adds access permissions to a groupvoid
addPermission
(IGroup group, IResourceDefinition storageDefinition, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a group and allows to specify localization and organization scopes.void
addPermission
(IGroup group, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Adds access permissions to a groupvoid
addPermission
(IGroup group, Class<? extends ISecuritySupport> securityType, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a group and allows to specify localization and organization scopes.void
addPermission
(IGroup group, Object right) Deprecated.: use addPermission( IGroup group, int permissionLevel, int...void
addPermission
(IProfile profile, int permissionLevel) Adds access permissions to a profile.void
addPermission
(IProfile profile, int permissionLevel, int... flags) Adds access permissions to a profile.void
addPermission
(IProfile profile, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Adds access permissions to a profile and allows to specify localization and organization scopes.void
addPermission
(IProfile profile, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a profile and allows to specify localization and organization scopes.void
addPermission
(IProfile profile, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Adds access permissions to a profilevoid
addPermission
(IProfile profile, IResourceDefinition storageDefinition, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a profile and allows to specify localization and organization scopes.void
addPermission
(IProfile profile, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Adds access permissions to a profilevoid
addPermission
(IProfile profile, Class<? extends ISecuritySupport> securityType, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a profile and allows to specify localization and organization scopes.void
addPermission
(IRole role, int permissionLevel) Deprecated.Use addPermission(profile, permissionLevel) instead.void
addPermission
(IRole role, int permissionLevel, int... flags) Deprecated.Use addPermission(profile, permissionLevel,flags) instead.void
addPermission
(IRole role, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Deprecated.Use addPermission(profile, securityType, permissionLevel, flags) instead.void
addPermission
(IRole role, Object right) Deprecated.: use addPermission( IRole role, int permissionLevel, int...void
addPermission
(IUser user, int permissionLevel) Adds access permissions to a user for aISecuritySupport
object.void
addPermission
(IUser user, int permissionLevel, int... flags) Adds access permissions to a user for aISecuritySupport
object.void
addPermission
(IUser user, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Adds access permissions to a user for aISecuritySupport
object and allows to specify localization and organization scopes.void
addPermission
(IUser user, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a user for aISecuritySupport
object and allows to specify localization and organization scopes.void
addPermission
(IUser user, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Adds access permissions to a user for aISecuritySupport
object.void
addPermission
(IUser user, IResourceDefinition storageDefinition, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a user for aISecuritySupport
object and allows to specify localization and organization scopes.void
addPermission
(IUser user, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Adds access permissions to a user for aISecuritySupport
objectvoid
addPermission
(IUser user, Class<? extends ISecuritySupport> securityType, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a user for aISecuritySupport
object and allows to specify localization and organization scopes.void
addPermission
(IUser user, Object right) Deprecated.: use addPermission( IUser user, int permissionLevel, int...void
addPermission
(Collection trustees, Object right) Deprecated.void
breakInheritance
(int joker, Object right) Deprecated.: use breakInheritance( securityType );void
breakInheritance
(Class<? extends ISecuritySupport> securityType) Break inheritance for this type for the specified security typeboolean
checkPermission
(int joker, Object right) Deprecated.: use checkPermission( IUser user, int permissionLevel, int...boolean
checkPermission
(IGroup group, Object right) Deprecated.: use checkPermission( IUser user, int permissionLevel, int...boolean
checkPermission
(IGroup group, Object right, boolean recursive) Deprecated.: use checkPermission( IUser user, int permissionLevel, int...boolean
checkPermission
(IRole role, Object right) Deprecated.: use checkPermission( IUser user, int permissionLevel, int...boolean
checkPermission
(IRole role, Object right, boolean recursive) Deprecated.: use checkPermission( IUser user, int permissionLevel, int...boolean
checkPermission
(IUser user, int permissionLevel) Check the user permissionboolean
checkPermission
(IUser user, int permissionLevel, int... flags) Check the user permissionboolean
checkPermission
(IUser user, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Check the user permissionboolean
checkPermission
(IUser user, Object right) Deprecated.: use checkPermission( IUser user, int permissionLevel, int...boolean
checkPermission
(IUser user, Object right, boolean recursive) Deprecated.: use checkPermission( IUser user, int permissionLevel, int...boolean
checkPermission
(Collection trustees, Object right) Deprecated.: use checkPermission( IUser user, int permissionLevel, int...boolean
hasPermission
(int joker, int permissionLevel, int... flags) Check the special permission on a specific object (no recursivity)boolean
hasPermission
(int joker, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Check the special permission on a specific object (no recursivity)boolean
hasPermission
(int joker, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Check the special permission on a specific object (no recursivity)boolean
hasPermission
(IGroup group, int permissionLevel, int... flags) Check the group permission on a specific object (no recursivity)boolean
hasPermission
(IGroup group, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Check the group permission on a specific object (no recursivity)boolean
hasPermission
(IGroup group, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Check the group permission on a specific object (no recursivity)boolean
hasPermission
(IProfile profile, int permissionLevel, int... flags) Check the profile permission on a specific object (no recursivity)boolean
hasPermission
(IProfile profile, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Check the profile permission on a specific object (no recursivity)boolean
hasPermission
(IProfile profile, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Check the profile permission on a specific object (no recursivity)boolean
hasPermission
(IUser user, int permissionLevel, int... flags) Check the user permission on a specific object (no recursivity)boolean
hasPermission
(IUser user, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Check the user permission on a specific object (no recursivity)boolean
hasPermission
(IUser user, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Check the user permission on a specific object (no recursivity)void
removePermission
(int joker) Remove a special permissionvoid
removePermission
(int joker, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permissionvoid
removePermission
(int joker, IResourceDefinition storageDefinition) Remove a special permissionvoid
removePermission
(int joker, IResourceDefinition storageDefinition, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a special permissionvoid
removePermission
(int joker, Class<? extends ISecuritySupport> securityType) Remove a special permissionvoid
removePermission
(int joker, Class<? extends ISecuritySupport> securityType, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a special permissionvoid
removePermission
(int joker, Object right) Deprecated.: use removePermission( int joker, int permissionLevel, int...void
removePermission
(IGroup group) Remove a permission on a groupvoid
removePermission
(IGroup group, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a groupvoid
removePermission
(IGroup group, IResourceDefinition storageDefinition) Remove a permission on a groupvoid
removePermission
(IGroup group, IResourceDefinition storageDefinition, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a groupvoid
removePermission
(IGroup group, Class<? extends ISecuritySupport> securityType) Remove a permission on a groupvoid
removePermission
(IGroup group, Class<? extends ISecuritySupport> securityType, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a groupvoid
removePermission
(IGroup group, Object right) Deprecated.: use removePermission( IGroup group, int permissionLevel, int...void
removePermission
(IProfile profile) Remove a permission on a profile.void
removePermission
(IProfile profile, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a profilevoid
removePermission
(IProfile profile, IResourceDefinition storageDefinition) Remove a permission on a profilevoid
removePermission
(IProfile profile, IResourceDefinition storageDefinition, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a profilevoid
removePermission
(IProfile profile, Class<? extends ISecuritySupport> securityType) Remove a permission on a profilevoid
removePermission
(IProfile profile, Class<? extends ISecuritySupport> securityType, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a profilevoid
removePermission
(IRole role) Deprecated.Use removePermission( profile ) instead.void
removePermission
(IRole role, Class<? extends ISecuritySupport> securityType) Deprecated.Use removePermission( profile, securityType ) instead.void
removePermission
(IRole role, Object right) Deprecated.: use removePermission( IRole role, int permissionLevel, int...void
removePermission
(IUser user) Remove a permission on a uservoid
removePermission
(IUser user, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a uservoid
removePermission
(IUser user, IResourceDefinition storageDefinition) Remove a permission on a uservoid
removePermission
(IUser user, IResourceDefinition storageDefinition, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a uservoid
removePermission
(IUser user, Class<? extends ISecuritySupport> securityType) Remove a permission on a uservoid
removePermission
(IUser user, Class<? extends ISecuritySupport> securityType, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a uservoid
removePermission
(IUser user, Object right) Deprecated.: use removePermission( IUser user, int permissionLevel, int...void
removePermission
(Collection trustees, Object right) Deprecated.void
Remove all permissions on this object (restore default permissions)void
removePermissions
(int joker) Remove all permissions on a joker.void
removePermissions
(IGroup group) Remove all permissions on a groupvoid
removePermissions
(IProfile profile) Remove all permissions on a profilevoid
removePermissions
(IUser user) Remove all permissions on a user
-
Field Details
-
EVERYONE
static final int EVERYONEJoker for any authenticated user- See Also:
-
ADMINISTRATOR
Deprecated.- See Also:
-
ANONYMOUS
static final int ANONYMOUSJoker for any unauthenticated user- See Also:
-
-
Method Details
-
checkPermission
Check the user permission- Parameters:
user
- TheIUser
object to check upon.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.- Returns:
- true if the user has permission to access the object
-
checkPermission
Check the user permission- Parameters:
user
- TheIUser
object to check upon.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
checkPermission
boolean checkPermission(IUser user, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Check the user permission- Parameters:
user
- TheIUser
object to check upon.securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
hasPermission
Check the user permission on a specific object (no recursivity)- Parameters:
user
- TheIUser
object to check upon.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
hasPermission
boolean hasPermission(IUser user, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Check the user permission on a specific object (no recursivity)- Parameters:
user
- TheIUser
object to check upon.securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
hasPermission
boolean hasPermission(IUser user, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Check the user permission on a specific object (no recursivity)- Parameters:
user
- TheIUser
object to check upon.storageDefinition
- the resource definition of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
hasPermission
Check the group permission on a specific object (no recursivity)- Parameters:
group
- TheIGroup
object to check upon.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
hasPermission
boolean hasPermission(IGroup group, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Check the group permission on a specific object (no recursivity)- Parameters:
group
- TheIGroup
object to check upon.securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
hasPermission
boolean hasPermission(IGroup group, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Check the group permission on a specific object (no recursivity)- Parameters:
group
- TheIGroup
object to check upon.storageDefinition
- the resource definition of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
hasPermission
Check the profile permission on a specific object (no recursivity)- Parameters:
profile
- TheIProfile
object to check upon.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
hasPermission
boolean hasPermission(IProfile profile, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Check the profile permission on a specific object (no recursivity)- Parameters:
profile
- TheIProfile
object to check upon.securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
hasPermission
boolean hasPermission(IProfile profile, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Check the profile permission on a specific object (no recursivity)- Parameters:
profile
- TheIProfile
object to check upon.storageDefinition
- the resource definition of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
hasPermission
boolean hasPermission(int joker, int permissionLevel, int... flags) Check the special permission on a specific object (no recursivity)- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
hasPermission
boolean hasPermission(int joker, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Check the special permission on a specific object (no recursivity)- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
hasPermission
boolean hasPermission(int joker, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Check the special permission on a specific object (no recursivity)- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)storageDefinition
- the resource definition of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flag needed- Returns:
- true if the user has permission to access the object
-
addPermission
Adds access permissions to a user for aISecuritySupport
object.- Parameters:
user
- TheIUser
object to add permission.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.
-
addPermission
Adds access permissions to a user for aISecuritySupport
object.- Parameters:
user
- TheIUser
object to add permission.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flags
-
addPermission
void addPermission(IUser user, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Adds access permissions to a user for aISecuritySupport
object and allows to specify localization and organization scopes.- Parameters:
user
- TheIUser
object to add permission.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.
-
addPermission
void addPermission(IUser user, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a user for aISecuritySupport
object and allows to specify localization and organization scopes.- Parameters:
user
- TheIUser
object to add permission.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.flags
- The additional flags.
-
addPermission
void addPermission(IUser user, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Adds access permissions to a user for aISecuritySupport
object- Parameters:
user
- TheIUser
object to add permission.securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flags
-
addPermission
void addPermission(IUser user, Class<? extends ISecuritySupport> securityType, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a user for aISecuritySupport
object and allows to specify localization and organization scopes.- Parameters:
user
- TheIUser
object to add permission.securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.flags
- the additional flags
-
addPermission
void addPermission(IUser user, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Adds access permissions to a user for aISecuritySupport
object.- Parameters:
user
- TheIUser
object to add permission.storageDefinition
- the resource definition of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flags
-
addPermission
void addPermission(IUser user, IResourceDefinition storageDefinition, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a user for aISecuritySupport
object and allows to specify localization and organization scopes.- Parameters:
user
- TheIUser
object to add permission.storageDefinition
- the resource definition of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.flags
- the additional flags
-
addPermission
Adds access permissions to a group- Parameters:
group
- TheIGroup
object to add permission.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.
-
addPermission
void addPermission(IGroup group, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Adds access permissions to a group and allows to specify localization and organization scopes.- Parameters:
group
- TheIGroup
object to add permission.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.
-
addPermission
Adds access permissions to a group- Parameters:
group
- TheIGroup
object to add permission.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flags
-
addPermission
void addPermission(IGroup group, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a group and allows to specify localization and organization scopes.- Parameters:
group
- TheIGroup
object to add permission.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.flags
- the additional flags
-
addPermission
void addPermission(IGroup group, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Adds access permissions to a group- Parameters:
group
- TheIGroup
object to add permission.securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flags
-
addPermission
void addPermission(IGroup group, Class<? extends ISecuritySupport> securityType, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a group and allows to specify localization and organization scopes.- Parameters:
group
- TheIGroup
object to add permission.securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.flags
- the additional flags
-
addPermission
void addPermission(IGroup group, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Adds access permissions to a group- Parameters:
group
- TheIGroup
object to add permission.storageDefinition
- the resource definition of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flags
-
addPermission
void addPermission(IGroup group, IResourceDefinition storageDefinition, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a group and allows to specify localization and organization scopes.- Parameters:
group
- TheIGroup
object to add permission.storageDefinition
- the resource definition of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.flags
- the additional flags
-
addPermission
Deprecated.Use addPermission(profile, permissionLevel) instead.Adds access permissions to a role.- Parameters:
role
- TheIRole
object to add permission to.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.
-
addPermission
Deprecated.Use addPermission(profile, permissionLevel,flags) instead.Adds access permissions to a role.- Parameters:
role
- theIRole
object to add permission to.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- The additional flags.
-
addPermission
@Deprecated void addPermission(IRole role, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Deprecated.Use addPermission(profile, securityType, permissionLevel, flags) instead.Adds access permissions to a role.- Parameters:
role
- TheIRole
object to add permission to.securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flags
-
addPermission
Adds access permissions to a profile.- Parameters:
profile
- TheIProfile
object to add permission to.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- The additional flags.
-
addPermission
void addPermission(IProfile profile, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Adds access permissions to a profile and allows to specify localization and organization scopes.- Parameters:
profile
- TheIProfile
object to add permission to.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.
-
addPermission
Adds access permissions to a profile.- Parameters:
profile
- theIProfile
object to add permission to.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- The additional flags.
-
addPermission
void addPermission(IProfile profile, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a profile and allows to specify localization and organization scopes.- Parameters:
profile
- TheIProfile
object to add permission to.permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.flags
- The additional flags.
-
addPermission
void addPermission(IProfile profile, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Adds access permissions to a profile- Parameters:
profile
- TheIProfile
object to add permission to.securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flags
-
addPermission
void addPermission(IProfile profile, Class<? extends ISecuritySupport> securityType, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a profile and allows to specify localization and organization scopes.- Parameters:
profile
- TheIProfile
object to add permission to.securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.flags
- the additional flags
-
addPermission
void addPermission(IProfile profile, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Adds access permissions to a profile- Parameters:
profile
- TheIProfile
object to add permission to.storageDefinition
- the resource definition of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flags
-
addPermission
void addPermission(IProfile profile, IResourceDefinition storageDefinition, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds access permissions to a profile and allows to specify localization and organization scopes.- Parameters:
profile
- TheIProfile
object to add permission to.storageDefinition
- the resource definition of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.flags
- the additional flags
-
addPermission
void addPermission(int joker, int permissionLevel) Adds a special permission- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.
-
addPermission
void addPermission(int joker, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Adds a special permission and allows to specify localization and organization scopes.- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.
-
addPermission
void addPermission(int joker, int permissionLevel, int... flags) Adds a special permission- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flags
-
addPermission
void addPermission(int joker, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds a special permission and allows to specify localization and organization scopes.- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)permissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.flags
- the additional flags
-
addPermission
void addPermission(int joker, Class<? extends ISecuritySupport> securityType, int permissionLevel, int... flags) Adds a special permission- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flags
-
addPermission
void addPermission(int joker, Class<? extends ISecuritySupport> securityType, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds a special permission- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)securityType
- the type of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.flags
- the additional flagspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.
-
addPermission
void addPermission(int joker, IResourceDefinition storageDefinition, int permissionLevel, int... flags) Adds a special permission- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)storageDefinition
- the resource definition of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.flags
- the additional flags
-
addPermission
void addPermission(int joker, IResourceDefinition storageDefinition, int permissionLevel, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization, int... flags) Adds a special permission- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)storageDefinition
- the resource definition of children objectspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.organizationFilter
- A value ofISecurityController.IScopeFilters
for the organization filter.organization
- TheIOrganization
object.localizationFilter
- A value ofISecurityController.IScopeFilters
for the localization filter.localization
- TheILocalization
object.flags
- the additional flagspermissionLevel
- TheISecurityController.IPermissionLevels
object to check upon.
-
removePermission
Remove a permission on a user- Parameters:
user
- TheIUser
object to remove permission.
-
removePermissions
Remove all permissions on a user- Parameters:
user
- TheIUser
object to remove permissions from.
-
removePermission
void removePermission(IUser user, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a user- Parameters:
user
-organizationFilter
-organization
-localizationFilter
-localization
-permissionLevel
-
-
removePermission
Remove a permission on a user- Parameters:
user
- TheIUser
object to remove permission.securityType
- the type of children objects
-
removePermission
void removePermission(IUser user, Class<? extends ISecuritySupport> securityType, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a user- Parameters:
user
- TheIUser
object to remove permission.securityType
- the type of children objectsorganizationFilter
-organization
-localizationFilter
-localization
-
-
removePermission
Remove a permission on a user- Parameters:
user
- TheIUser
object to remove permission.storageDefinition
- the resource definition of children objects
-
removePermission
void removePermission(IUser user, IResourceDefinition storageDefinition, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a user- Parameters:
user
- TheIUser
object to remove permission.storageDefinition
- the resource definition of children objectsorganizationFilter
-organization
-localizationFilter
-localization
-
-
removePermission
Remove a permission on a group- Parameters:
group
- TheIGroup
object to remove permission.
-
removePermissions
Remove all permissions on a group- Parameters:
group
- TheIGroup
object to remove permissions from.
-
removePermission
void removePermission(IGroup group, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a group- Parameters:
group
-organizationFilter
-organization
-localizationFilter
-localization
-permissionLevel
-
-
removePermission
Remove a permission on a group- Parameters:
group
- TheIGroup
object to remove permission.securityType
- the type of children objects
-
removePermission
void removePermission(IGroup group, Class<? extends ISecuritySupport> securityType, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a group- Parameters:
group
- TheIGroup
object to remove permission.securityType
- the type of children objectsorganizationFilter
-organization
-localizationFilter
-localization
-
-
removePermission
Remove a permission on a group- Parameters:
group
- TheIGroup
object to remove permission.storageDefinition
- the resource definition of children objects
-
removePermission
void removePermission(IGroup group, IResourceDefinition storageDefinition, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a group- Parameters:
group
- TheIGroup
object to remove permission.storageDefinition
- the resource definition of children objectsorganizationFilter
-organization
-localizationFilter
-localization
-
-
removePermission
Deprecated.Use removePermission( profile ) instead.Remove a permission on a role- Parameters:
role
- TheIRole
object to remove permission.
-
removePermission
Deprecated.Use removePermission( profile, securityType ) instead.Remove a permission on a role- Parameters:
role
- TheIRole
object to remove permission.securityType
- the type of children objects
-
removePermission
Remove a permission on a profile.- Parameters:
profile
- TheIProfile
object to remove permission.
-
removePermissions
Remove all permissions on a profile- Parameters:
profile
- TheIProfile
object to remove permissions from.
-
removePermission
void removePermission(IProfile profile, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a profile- Parameters:
profile
-organizationFilter
-organization
-localizationFilter
-localization
-permissionLevel
-
-
removePermission
Remove a permission on a profile- Parameters:
profile
- TheIProfile
object to remove permission.securityType
- the type of children objects
-
removePermission
void removePermission(IProfile profile, Class<? extends ISecuritySupport> securityType, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a profile- Parameters:
profile
- TheIProfile
object to remove permission.securityType
- the type of children objectsorganizationFilter
-organization
-localizationFilter
-localization
-
-
removePermission
Remove a permission on a profile- Parameters:
profile
- TheIProfile
object to remove permission.storageDefinition
- the resource definition of children objects
-
removePermission
void removePermission(IProfile profile, IResourceDefinition storageDefinition, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission on a profile- Parameters:
profile
- TheIProfile
object to remove permission.storageDefinition
- the resource definition of children objectsorganizationFilter
-organization
-localizationFilter
-localization
-
-
removePermission
void removePermission(int joker) Remove a special permission- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)
-
removePermissions
void removePermissions(int joker) Remove all permissions on a joker.- Parameters:
joker
-
-
removePermission
void removePermission(int joker, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a permission- Parameters:
joker
-organizationFilter
-organization
-localizationFilter
-localization
-permissionLevel
-
-
removePermission
Remove a special permission- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)securityType
- the type of children objects
-
removePermission
void removePermission(int joker, Class<? extends ISecuritySupport> securityType, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a special permission- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)securityType
- the type of children objectsorganizationFilter
-organization
-localizationFilter
-localization
-
-
removePermission
Remove a special permission- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)storageDefinition
- the resource definition of children objects
-
removePermission
void removePermission(int joker, IResourceDefinition storageDefinition, int organizationFilter, IOrganization organization, int localizationFilter, ILocalization localization) Remove a special permission- Parameters:
joker
- the specific users type (ANONMYMOUS/EVERYONE)storageDefinition
- the resource definition of children objectsorganizationFilter
-organization
-localizationFilter
-localization
-
-
removePermissions
void removePermissions()Remove all permissions on this object (restore default permissions) -
breakInheritance
Break inheritance for this type for the specified security type- Parameters:
securityType
- the type of children objects that must be broken
-
checkPermission
Deprecated.: use checkPermission( IUser user, int permissionLevel, int... flags );Checks a permission for a user recursively.- Parameters:
user
-right
-recursive
-- Returns:
- Returns true if the permission is available, false otherwise.
-
checkPermission
Deprecated.: use checkPermission( IUser user, int permissionLevel, int... flags );Checks a permission for a group recursively.- Parameters:
group
-right
-recursive
-- Returns:
- Returns true if the permission is available, false otherwise.
-
checkPermission
Deprecated.: use checkPermission( IUser user, int permissionLevel, int... flags );Checks a permission for a role recursively.- Parameters:
role
-right
-recursive
-- Returns:
- Returns true if the permission is available, false otherwise.
-
checkPermission
Deprecated.: use checkPermission( IUser user, int permissionLevel, int... flags );Checks a permission for a user.- Parameters:
user
-right
-- Returns:
- Returns true if the permission is available, false otherwise.
-
checkPermission
Deprecated.: use checkPermission( IUser user, int permissionLevel, int... flags );Checks a permission for a group.- Parameters:
group
-right
-- Returns:
- Returns true if the permission is available, false otherwise.
-
checkPermission
Deprecated.: use checkPermission( IUser user, int permissionLevel, int... flags );Checks a permission for a role.- Parameters:
role
-right
-- Returns:
- Returns true if the permission is available, false otherwise.
-
checkPermission
Deprecated.: use checkPermission( IUser user, int permissionLevel, int... flags );Checks a permission for a joker.- Parameters:
joker
-right
-- Returns:
- Returns true if the permission is available, false otherwise.
-
checkPermission
Deprecated.: use checkPermission( IUser user, int permissionLevel, int... flags );Checks a permission for a collection of trustees.- Parameters:
trustees
-right
-- Returns:
- Returns true if the permission is available, false otherwise.
-
addPermission
Deprecated.: use addPermission( IUser user, int permissionLevel, int... flags );Add a permission on a user.- Parameters:
user
-right
-
-
addPermission
Deprecated.: use addPermission( IGroup group, int permissionLevel, int... flags );Add a permission on a group.- Parameters:
group
-right
-
-
addPermission
Deprecated.: use addPermission( IRole role, int permissionLevel, int... flags );Add a permission on a role.- Parameters:
role
-right
-
-
addPermission
Deprecated.: use addPermission( int joker, int permissionLevel, int... flags );Add a permission on a joker.- Parameters:
joker
-right
-
-
addPermission
Deprecated.Add a permission on a collection of trustees.- Parameters:
trustees
-right
-
-
removePermission
Deprecated.: use removePermission( IUser user, int permissionLevel, int... flags );Remove a permission on a user.- Parameters:
user
-right
-
-
removePermission
Deprecated.: use removePermission( IGroup group, int permissionLevel, int... flags );Remove a permission on a group.- Parameters:
group
-right
-
-
removePermission
Deprecated.: use removePermission( IRole role, int permissionLevel, int... flags );Remove a permission on a role.- Parameters:
role
-right
-
-
removePermission
Deprecated.: use removePermission( int joker, int permissionLevel, int... flags );Remove a permission on a joker.- Parameters:
joker
-right
-
-
removePermission
Deprecated.Remove a permission on a collection of trustees.- Parameters:
trustees
-right
-
-
breakInheritance
Deprecated.: use breakInheritance( securityType );Break inheritance on a joker- Parameters:
joker
-right
-
-