com.sap.mdm.security
Interface RepositoryAccessPermissions


public interface RepositoryAccessPermissions

For object permission, these are the methods to use:

  • getRootObjectPermission()
  • getTablePermission(TableId)
  • getFieldPermission(TableId, FieldId)
  • getImageVariantsPermission()
  • getImageVariantPermission(ImageVariantId)
  • getRelationshipsPermission()
  • getRelationshipPermission(RelationshipId)
  • getFamiliesPermission()
  • getFamilyFieldPermission(FieldId)
  • getObjectPermission(int)
  • getTableConstraints(TableId)

    For function permission, these are the methods to use:

  • getRootFunctionPermission()
  • getFunctionPermission(int)



  • Nested Class Summary
    static class RepositoryAccessPermissions.Administration
              Provides enumerations for administration operations.
    static class RepositoryAccessPermissions.ChangeTracking
              Provides enumerations for change tracking operations.
    static class RepositoryAccessPermissions.ConsolidationAndDistribution
              Provides enumerations for consolidation and distribution operations.
    static class RepositoryAccessPermissions.DataManager
              Provides enumerations for MDM Data Manager operations.
    static class RepositoryAccessPermissions.Families
              Provides enumerations for families operations.
    static class RepositoryAccessPermissions.Hierarchies
              Provides enumerations for hierarchy operations.
    static class RepositoryAccessPermissions.Images
              Provides enumerations for image operations.
    static class RepositoryAccessPermissions.Indexes
              Provides enumerations for indexing operations.
    static class RepositoryAccessPermissions.Layouts
              Provides enumerations for layout operations.
    static class RepositoryAccessPermissions.Matching
              Provides enumerations for matching operations.
    static class RepositoryAccessPermissions.Objects
              Provides enumerations for object operations.
    static class RepositoryAccessPermissions.Publications
              Provides enumerations for publication operations.
    static class RepositoryAccessPermissions.PublisherObjectCheckouts
              Provides enumerations for publisher object operations.
    static class RepositoryAccessPermissions.Records
              Provides enumerations for record operations.
    static class RepositoryAccessPermissions.Relationship
              Provides enumerations for relationship operations.
    static class RepositoryAccessPermissions.Schema
              Provides enumerations for schema operations.
    static class RepositoryAccessPermissions.Taxonomies
              Provides enumerations for taxonomy operations.
    static class RepositoryAccessPermissions.Workflow
              Provides enumerations for workflow operations.
     
    Field Summary
    static int FUNCTION_EXECUTE_ACCESS
               
    static int FUNCTION_NONE_ACCESS
               
    static int OBJECT_READ_ONLY_ACCESS
               
    static int OBJECT_READ_WRITE_ACCESS
               
     
    Method Summary
     int getFamiliesPermission()
              Returns the access permission for Families.
     int getFamilyFieldPermission(FieldId fieldId)
              Returns the access permission for family fields.
     int getFieldPermission(TableId tableId, FieldId fieldId)
              Returns the access permission for the specified field.
     int getFieldPermission(TableId tableId, FieldId[] fieldIdPath)
              Returns the access permission for the specified field.
     int getFunctionPermission(int function)
              Returns the access permission for the function.
     int getImageVariantPermission(ImageVariantId imageVariantId)
              Returns the access permission for the specified image variant.
     int getImageVariantsPermission()
              Returns the access permission for image variants.
     int getObjectPermission(int object)
              Returns the access permission for the object.
     int getRelationshipPermission(RelationshipId relationshipId)
              Returns the access permission for a relationship.
     int getRelationshipsPermission()
              Returns the access permission for relationships.
     int getRootFunctionPermission()
              Returns the root permission of all functions.
     int getRootObjectPermission()
              Returns the root access permission.
     RecordId[] getTableConstraints(TableId tableId)
              Returns the table constraints.
     int getTablePermission(TableId tableId)
              Returns the access permission for the specified table.
     

    Field Detail

    OBJECT_READ_ONLY_ACCESS

    public static final int OBJECT_READ_ONLY_ACCESS
    See Also:
    Constant Field Values

    OBJECT_READ_WRITE_ACCESS

    public static final int OBJECT_READ_WRITE_ACCESS
    See Also:
    Constant Field Values

    FUNCTION_NONE_ACCESS

    public static final int FUNCTION_NONE_ACCESS
    See Also:
    Constant Field Values

    FUNCTION_EXECUTE_ACCESS

    public static final int FUNCTION_EXECUTE_ACCESS
    See Also:
    Constant Field Values
    Method Detail

    getRootObjectPermission

    public int getRootObjectPermission()
    Returns the root access permission.

    Returns:
    an access permission

    getTablePermission

    public int getTablePermission(TableId tableId)
                           throws IllegalArgumentException
    Returns the access permission for the specified table.

    Parameters:
    tableId - a table Id
    Returns:
    an access permission
    Throws:
    IllegalArgumentException

    getFieldPermission

    public int getFieldPermission(TableId tableId,
                                  FieldId fieldId)
                           throws IllegalArgumentException
    Returns the access permission for the specified field.

    Parameters:
    tableId - a table Id
    fieldId - a field Id
    Returns:
    an access permission
    Throws:
    IllegalArgumentException

    getFieldPermission

    public int getFieldPermission(TableId tableId,
                                  FieldId[] fieldIdPath)
                           throws IllegalArgumentException
    Returns the access permission for the specified field.

    Parameters:
    tableId - a table Id
    fieldIdPath - field Id path
    Returns:
    an access permission
    Throws:
    IllegalArgumentException

    getFamiliesPermission

    public int getFamiliesPermission()
    Returns the access permission for Families.

    Returns:
    an access permission

    getFamilyFieldPermission

    public int getFamilyFieldPermission(FieldId fieldId)
    Returns the access permission for family fields.

    Returns:
    an access permission

    getImageVariantsPermission

    public int getImageVariantsPermission()
    Returns the access permission for image variants.

    Returns:
    an access permission

    getImageVariantPermission

    public int getImageVariantPermission(ImageVariantId imageVariantId)
    Returns the access permission for the specified image variant.

    Parameters:
    imageVariantId - an image variant Id
    Returns:
    an access permission

    getRelationshipsPermission

    public int getRelationshipsPermission()
    Returns the access permission for relationships.

    Returns:
    an access permission

    getRelationshipPermission

    public int getRelationshipPermission(RelationshipId relationshipId)
    Returns the access permission for a relationship.

    Parameters:
    relationshipId - a relationship Id
    Returns:
    an access permission

    getObjectPermission

    public int getObjectPermission(int object)
    Returns the access permission for the object.

    Parameters:
    object - the object Id
    Returns:
    an access permission
    See Also:
    RepositoryAccessPermissions.Objects

    getTableConstraints

    public RecordId[] getTableConstraints(TableId tableId)
                                   throws IllegalArgumentException
    Returns the table constraints.

    Parameters:
    tableId - a table Id
    Returns:
    the list of constraints
    Throws:
    IllegalArgumentException

    getRootFunctionPermission

    public int getRootFunctionPermission()
    Returns the root permission of all functions.

    Returns:
    an access permission

    getFunctionPermission

    public int getFunctionPermission(int function)
                              throws IllegalArgumentException
    Returns the access permission for the function.

    Parameters:
    function - a function enumeration
    Returns:
    an access permission
    Throws:
    IllegalArgumentException


    Copyright 2004-2007 by SAP AG. All Rights Reserved.

    SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

    These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.