com.sap.mdm.security
Class RoleProperties

java.lang.Object
  extended bycom.sap.mdm.security.RoleProperties
All Implemented Interfaces:
RepositoryItem

public class RoleProperties
extends java.lang.Object
implements RepositoryItem

This class represents a role in MDM. A role specifies a set of permissions a user will have access to.

See Also:
UserProperties

Field Summary
static RoleId ADMINISTRATOR_ROLE_ID
          The administrator role Id.
static RoleId DEFAULT_ROLE_ID
          The default role Id.
 
Constructor Summary
RoleProperties()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 AccessPermission[] getAccessPermissions()
          Deprecated. replaced by getRepositoryAccessPermissions()
 java.lang.String getDescription()
          Returns the description for the role.
 FunctionPermission[] getFunctionPermissions()
          Deprecated. replaced by getRepositoryAccessPermissions()
 RoleId getId()
          Returns the role ID.
 java.lang.String getName()
          Returns the role name.
 RepositoryAccessPermissions getRepositoryAccessPermissions()
          Returns the role's object and function access permissions.
 int hashCode()
           
 void setAccessPermissions(AccessPermission[] schema)
          Deprecated. replaced by getRepositoryAccessPermissions()
 void setDescription(java.lang.String description)
          Sets the description for the role.
 void setFunctionPermissions(FunctionPermission[] functions)
          Deprecated.  
 void setId(RoleId id)
          Sets the role ID.
 void setName(java.lang.String name)
          Sets the role name.
 void setRepositoryAccessPermissions(RepositoryAccessPermissions repositoryPermissions)
          Sets the role's access permissions.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ADMINISTRATOR_ROLE_ID

public static final RoleId ADMINISTRATOR_ROLE_ID
The administrator role Id.


DEFAULT_ROLE_ID

public static final RoleId DEFAULT_ROLE_ID
The default role Id.

Constructor Detail

RoleProperties

public RoleProperties()
Method Detail

getDescription

public java.lang.String getDescription()
Returns the description for the role.

Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Sets the description for the role.

Parameters:
description - The description to set.

getId

public RoleId getId()
Returns the role ID.

Returns:
Returns the id.

setId

public void setId(RoleId id)
Sets the role ID.

Parameters:
id - The id to set.

getName

public java.lang.String getName()
Returns the role name.

Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Sets the role name.

Parameters:
name - The name to set.

getFunctionPermissions

public FunctionPermission[] getFunctionPermissions()
Deprecated. replaced by getRepositoryAccessPermissions()

Returns the access permission for each functions.

Returns:
Returns the functions.

setFunctionPermissions

public void setFunctionPermissions(FunctionPermission[] functions)
Deprecated.  

Sets the access permission for each functions.

Parameters:
functions - The functions to set.

getAccessPermissions

public AccessPermission[] getAccessPermissions()
Deprecated. replaced by getRepositoryAccessPermissions()

Returns the access permission for each schema object.

Returns:
Returns the schema.

setAccessPermissions

public void setAccessPermissions(AccessPermission[] schema)
Deprecated. replaced by getRepositoryAccessPermissions()

Sets the access permssion for each schema object.

Parameters:
schema - The schema to set.

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)

toString

public java.lang.String toString()

setRepositoryAccessPermissions

public void setRepositoryAccessPermissions(RepositoryAccessPermissions repositoryPermissions)
Sets the role's access permissions.

Parameters:
repositoryPermissions - access permissions

getRepositoryAccessPermissions

public RepositoryAccessPermissions getRepositoryAccessPermissions()
Returns the role's object and function access permissions.

Returns:
the role's access permissions


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.