Interface ISecurityController

All Superinterfaces:
IController, Serializable
All Known Implementing Classes:
CoreSecurityController, PortalSecurityController

public interface ISecurityController extends IController
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:
  • Field Details

  • Method Details

    • checkPermission

      boolean checkPermission(IUser user, int permissionLevel)
      Check the user permission
      Parameters:
      user - The IUser object to check upon.
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      Returns:
      true if the user has permission to access the object
    • checkPermission

      boolean checkPermission(IUser user, int permissionLevel, int... flags)
      Check the user permission
      Parameters:
      user - The IUser object to check upon.
      permissionLevel - The ISecurityController.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 - The IUser object to check upon.
      securityType - the type of children objects
      permissionLevel - The ISecurityController.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, int permissionLevel, int... flags)
      Check the user permission on a specific object (no recursivity)
      Parameters:
      user - The IUser object to check upon.
      permissionLevel - The ISecurityController.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 - The IUser object to check upon.
      securityType - the type of children objects
      permissionLevel - The ISecurityController.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 - The IUser object to check upon.
      storageDefinition - the resource definition of children objects
      permissionLevel - The ISecurityController.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, int permissionLevel, int... flags)
      Check the group permission on a specific object (no recursivity)
      Parameters:
      group - The IGroup object to check upon.
      permissionLevel - The ISecurityController.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 - The IGroup object to check upon.
      securityType - the type of children objects
      permissionLevel - The ISecurityController.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 - The IGroup object to check upon.
      storageDefinition - the resource definition of children objects
      permissionLevel - The ISecurityController.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, int permissionLevel, int... flags)
      Check the profile permission on a specific object (no recursivity)
      Parameters:
      profile - The IProfile object to check upon.
      permissionLevel - The ISecurityController.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 - The IProfile object to check upon.
      securityType - the type of children objects
      permissionLevel - The ISecurityController.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 - The IProfile object to check upon.
      storageDefinition - the resource definition of children objects
      permissionLevel - The ISecurityController.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 - The ISecurityController.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 objects
      permissionLevel - The ISecurityController.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 objects
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      flags - the additional flag needed
      Returns:
      true if the user has permission to access the object
    • addPermission

      void addPermission(IUser user, int permissionLevel)
      Adds access permissions to a user for a ISecuritySupport object.
      Parameters:
      user - The IUser object to add permission.
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
    • addPermission

      void addPermission(IUser user, int permissionLevel, int... flags)
      Adds access permissions to a user for a ISecuritySupport object.
      Parameters:
      user - The IUser object to add permission.
      permissionLevel - The ISecurityController.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 a ISecuritySupport object and allows to specify localization and organization scopes.
      Parameters:
      user - The IUser object to add permission.
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization 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 a ISecuritySupport object and allows to specify localization and organization scopes.
      Parameters:
      user - The IUser object to add permission.
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization 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 a ISecuritySupport object
      Parameters:
      user - The IUser object to add permission.
      securityType - the type of children objects
      permissionLevel - The ISecurityController.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 a ISecuritySupport object and allows to specify localization and organization scopes.
      Parameters:
      user - The IUser object to add permission.
      securityType - the type of children objects
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization object.
      flags - the additional flags
    • addPermission

      void addPermission(IUser user, IResourceDefinition storageDefinition, int permissionLevel, int... flags)
      Adds access permissions to a user for a ISecuritySupport object.
      Parameters:
      user - The IUser object to add permission.
      storageDefinition - the resource definition of children objects
      permissionLevel - The ISecurityController.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 a ISecuritySupport object and allows to specify localization and organization scopes.
      Parameters:
      user - The IUser object to add permission.
      storageDefinition - the resource definition of children objects
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization object.
      flags - the additional flags
    • addPermission

      void addPermission(IGroup group, int permissionLevel)
      Adds access permissions to a group
      Parameters:
      group - The IGroup object to add permission.
      permissionLevel - The ISecurityController.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 - The IGroup object to add permission.
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization object.
    • addPermission

      void addPermission(IGroup group, int permissionLevel, int... flags)
      Adds access permissions to a group
      Parameters:
      group - The IGroup object to add permission.
      permissionLevel - The ISecurityController.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 - The IGroup object to add permission.
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization 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 - The IGroup object to add permission.
      securityType - the type of children objects
      permissionLevel - The ISecurityController.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 - The IGroup object to add permission.
      securityType - the type of children objects
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization object.
      flags - the additional flags
    • addPermission

      void addPermission(IGroup group, IResourceDefinition storageDefinition, int permissionLevel, int... flags)
      Adds access permissions to a group
      Parameters:
      group - The IGroup object to add permission.
      storageDefinition - the resource definition of children objects
      permissionLevel - The ISecurityController.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 - The IGroup object to add permission.
      storageDefinition - the resource definition of children objects
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization object.
      flags - the additional flags
    • addPermission

      @Deprecated void addPermission(IRole role, int permissionLevel)
      Deprecated.
      Use addPermission(profile, permissionLevel) instead.
      Adds access permissions to a role.
      Parameters:
      role - The IRole object to add permission to.
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
    • addPermission

      @Deprecated void addPermission(IRole role, int permissionLevel, int... flags)
      Deprecated.
      Use addPermission(profile, permissionLevel,flags) instead.
      Adds access permissions to a role.
      Parameters:
      role - the IRole object to add permission to.
      permissionLevel - The ISecurityController.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 - The IRole object to add permission to.
      securityType - the type of children objects
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      flags - the additional flags
    • addPermission

      void addPermission(IProfile profile, int permissionLevel)
      Adds access permissions to a profile.
      Parameters:
      profile - The IProfile object to add permission to.
      permissionLevel - The ISecurityController.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 - The IProfile object to add permission to.
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization object.
    • addPermission

      void addPermission(IProfile profile, int permissionLevel, int... flags)
      Adds access permissions to a profile.
      Parameters:
      profile - the IProfile object to add permission to.
      permissionLevel - The ISecurityController.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 - The IProfile object to add permission to.
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization 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 - The IProfile object to add permission to.
      securityType - the type of children objects
      permissionLevel - The ISecurityController.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 - The IProfile object to add permission to.
      securityType - the type of children objects
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization object.
      flags - the additional flags
    • addPermission

      void addPermission(IProfile profile, IResourceDefinition storageDefinition, int permissionLevel, int... flags)
      Adds access permissions to a profile
      Parameters:
      profile - The IProfile object to add permission to.
      storageDefinition - the resource definition of children objects
      permissionLevel - The ISecurityController.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 - The IProfile object to add permission to.
      storageDefinition - the resource definition of children objects
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization 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 - The ISecurityController.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 - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization object.
    • addPermission

      void addPermission(int joker, int permissionLevel, int... flags)
      Adds a special permission
      Parameters:
      joker - the specific users type (ANONMYMOUS/EVERYONE)
      permissionLevel - The ISecurityController.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 - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization 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 objects
      permissionLevel - The ISecurityController.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 objects
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization object.
      flags - the additional flags
      permissionLevel - The ISecurityController.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 objects
      permissionLevel - The ISecurityController.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 objects
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
      organizationFilter - A value of ISecurityController.IScopeFilters for the organization filter.
      organization - The IOrganization object.
      localizationFilter - A value of ISecurityController.IScopeFilters for the localization filter.
      localization - The ILocalization object.
      flags - the additional flags
      permissionLevel - The ISecurityController.IPermissionLevels object to check upon.
    • removePermission

      void removePermission(IUser user)
      Remove a permission on a user
      Parameters:
      user - The IUser object to remove permission.
    • removePermissions

      void removePermissions(IUser user)
      Remove all permissions on a user
      Parameters:
      user - The IUser 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

      void removePermission(IUser user, Class<? extends ISecuritySupport> securityType)
      Remove a permission on a user
      Parameters:
      user - The IUser 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 - The IUser object to remove permission.
      securityType - the type of children objects
      organizationFilter -
      organization -
      localizationFilter -
      localization -
    • removePermission

      void removePermission(IUser user, IResourceDefinition storageDefinition)
      Remove a permission on a user
      Parameters:
      user - The IUser 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 - The IUser object to remove permission.
      storageDefinition - the resource definition of children objects
      organizationFilter -
      organization -
      localizationFilter -
      localization -
    • removePermission

      void removePermission(IGroup group)
      Remove a permission on a group
      Parameters:
      group - The IGroup object to remove permission.
    • removePermissions

      void removePermissions(IGroup group)
      Remove all permissions on a group
      Parameters:
      group - The IGroup 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

      void removePermission(IGroup group, Class<? extends ISecuritySupport> securityType)
      Remove a permission on a group
      Parameters:
      group - The IGroup 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 - The IGroup object to remove permission.
      securityType - the type of children objects
      organizationFilter -
      organization -
      localizationFilter -
      localization -
    • removePermission

      void removePermission(IGroup group, IResourceDefinition storageDefinition)
      Remove a permission on a group
      Parameters:
      group - The IGroup 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 - The IGroup object to remove permission.
      storageDefinition - the resource definition of children objects
      organizationFilter -
      organization -
      localizationFilter -
      localization -
    • removePermission

      @Deprecated void removePermission(IRole role)
      Deprecated.
      Use removePermission( profile ) instead.
      Remove a permission on a role
      Parameters:
      role - The IRole object to remove permission.
    • removePermission

      @Deprecated void removePermission(IRole role, Class<? extends ISecuritySupport> securityType)
      Deprecated.
      Use removePermission( profile, securityType ) instead.
      Remove a permission on a role
      Parameters:
      role - The IRole object to remove permission.
      securityType - the type of children objects
    • removePermission

      void removePermission(IProfile profile)
      Remove a permission on a profile.
      Parameters:
      profile - The IProfile object to remove permission.
    • removePermissions

      void removePermissions(IProfile profile)
      Remove all permissions on a profile
      Parameters:
      profile - The IProfile 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

      void removePermission(IProfile profile, Class<? extends ISecuritySupport> securityType)
      Remove a permission on a profile
      Parameters:
      profile - The IProfile 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 - The IProfile object to remove permission.
      securityType - the type of children objects
      organizationFilter -
      organization -
      localizationFilter -
      localization -
    • removePermission

      void removePermission(IProfile profile, IResourceDefinition storageDefinition)
      Remove a permission on a profile
      Parameters:
      profile - The IProfile 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 - The IProfile object to remove permission.
      storageDefinition - the resource definition of children objects
      organizationFilter -
      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

      void removePermission(int joker, Class<? extends ISecuritySupport> securityType)
      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 objects
      organizationFilter -
      organization -
      localizationFilter -
      localization -
    • removePermission

      void removePermission(int joker, IResourceDefinition storageDefinition)
      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 objects
      organizationFilter -
      organization -
      localizationFilter -
      localization -
    • removePermissions

      void removePermissions()
      Remove all permissions on this object (restore default permissions)
    • breakInheritance

      void breakInheritance(Class<? extends ISecuritySupport> securityType)
      Break inheritance for this type for the specified security type
      Parameters:
      securityType - the type of children objects that must be broken
    • checkPermission

      @Deprecated boolean checkPermission(IUser user, Object right, boolean recursive)
      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 boolean checkPermission(IGroup group, Object right, boolean recursive)
      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 boolean checkPermission(IRole role, Object right, boolean recursive)
      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 boolean checkPermission(IUser user, Object right)
      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 boolean checkPermission(IGroup group, Object right)
      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 boolean checkPermission(IRole role, Object right)
      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 boolean checkPermission(int joker, Object right)
      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 boolean checkPermission(Collection trustees, Object right)
      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 void addPermission(IUser user, Object right)
      Deprecated.
      : use addPermission( IUser user, int permissionLevel, int... flags );
      Add a permission on a user.
      Parameters:
      user -
      right -
    • addPermission

      @Deprecated void addPermission(IGroup group, Object right)
      Deprecated.
      : use addPermission( IGroup group, int permissionLevel, int... flags );
      Add a permission on a group.
      Parameters:
      group -
      right -
    • addPermission

      @Deprecated void addPermission(IRole role, Object right)
      Deprecated.
      : use addPermission( IRole role, int permissionLevel, int... flags );
      Add a permission on a role.
      Parameters:
      role -
      right -
    • addPermission

      @Deprecated void addPermission(int joker, Object right)
      Deprecated.
      : use addPermission( int joker, int permissionLevel, int... flags );
      Add a permission on a joker.
      Parameters:
      joker -
      right -
    • addPermission

      @Deprecated void addPermission(Collection trustees, Object right)
      Deprecated.
      Add a permission on a collection of trustees.
      Parameters:
      trustees -
      right -
    • removePermission

      @Deprecated void removePermission(IUser user, Object right)
      Deprecated.
      : use removePermission( IUser user, int permissionLevel, int... flags );
      Remove a permission on a user.
      Parameters:
      user -
      right -
    • removePermission

      @Deprecated void removePermission(IGroup group, Object right)
      Deprecated.
      : use removePermission( IGroup group, int permissionLevel, int... flags );
      Remove a permission on a group.
      Parameters:
      group -
      right -
    • removePermission

      @Deprecated void removePermission(IRole role, Object right)
      Deprecated.
      : use removePermission( IRole role, int permissionLevel, int... flags );
      Remove a permission on a role.
      Parameters:
      role -
      right -
    • removePermission

      @Deprecated void removePermission(int joker, Object right)
      Deprecated.
      : use removePermission( int joker, int permissionLevel, int... flags );
      Remove a permission on a joker.
      Parameters:
      joker -
      right -
    • removePermission

      @Deprecated void removePermission(Collection trustees, Object right)
      Deprecated.
      Remove a permission on a collection of trustees.
      Parameters:
      trustees -
      right -
    • breakInheritance

      @Deprecated void breakInheritance(int joker, Object right)
      Deprecated.
      : use breakInheritance( securityType );
      Break inheritance on a joker
      Parameters:
      joker -
      right -