com.sap.mdm.security
Class RoleProperties

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

public class RoleProperties
extends 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()
           
RoleProperties(RoleProperties other)
          Copy c'tor.
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 AccessPermission[] getAccessPermissions()
          Deprecated. replaced by getRepositoryAccessPermissions()
 RolePropertiesApplicableFor getApplicableFor()
          Returns the role applicable For.
 String getDescription()
          Returns the description for the role.
 FunctionPermission[] getFunctionPermissions()
          Deprecated. replaced by getRepositoryAccessPermissions()
 RoleId getId()
          Returns the role ID.
 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 setRepositoryAccessPermissions(RepositoryAccessPermissions)
 void setApplicableFor(RolePropertiesApplicableFor applicableFor)
          Sets the role applicable for.
 void setDescription(String description)
          Sets the description for the role.
 void setFunctionPermissions(FunctionPermission[] functions)
          Deprecated.  
 void setId(RoleId id)
          Sets the role ID.
 void setName(String name)
          Sets the role name.
 void setRepositoryAccessPermissions(RepositoryAccessPermissions repositoryPermissions)
          Sets the role's access permissions.
 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()

RoleProperties

public RoleProperties(RoleProperties other)
Copy c'tor. Creates deep copy of RoleProperties object.

Parameters:
other - Object to copy
Since:
7.2
Method Detail

getDescription

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

Returns:
Returns the description.

setDescription

public void setDescription(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 String getName()
Returns the role name.

Returns:
Returns the name.

setName

public void setName(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 setRepositoryAccessPermissions(RepositoryAccessPermissions)

Sets the access permission for each schema object.

Parameters:
schema - The schema to set.

hashCode

public int hashCode()

equals

public boolean equals(Object obj)

toString

public String toString()

setRepositoryAccessPermissions

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

Note: This is for internal use.

Parameters:
repositoryPermissions - access permissions

getRepositoryAccessPermissions

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

Returns:
the role's access permissions

clone

public Object clone()

getApplicableFor

public RolePropertiesApplicableFor getApplicableFor()
Returns the role applicable For.

Returns:
Returns the applicable for.

setApplicableFor

public void setApplicableFor(RolePropertiesApplicableFor applicableFor)
Sets the role applicable for.



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.