public interface CcRolemap extends CcTypeBase
A proxy for a ClearCase rolemap.
A rolemap specifies the principals (users, groups, etc) that take on roles listed in a policy. In combination with a policy, it defines the access controls for one or more VOB objects.
The intention is that a small number of policies can be defined that determine how permissions are applied to objects. Defining a number of rolemaps for each policy describes who takes on the roles in the policy. By splitting the how and the who, policies can be reused multiple times to reduce the complexity of security administration. Each VOB with access control lists (ACLs) enables has a default rolemap named DefaultRolemap. This default rolemap is empty. The default rolemap controls all objects in the VOB until new objects are created with a reference to some other rolemap, or until an existing object is reprotected to use a new rolemap.
CcTypeBase.InstanceConstraint, CcTypeBase.Scope, CcTypeBase.TypeCreateFlagCcVobResource.ApplyAttributeFlagStpResource.UnsupportedPropertyResource.CopyFlag| Modifier and Type | Field and Description |
|---|---|
static PropertyNameList.PropertyName<Map<String,List<CcAccessControlEntry>>> |
ALL_EFFECTIVE_ACL
Map of names of VOB object proxy types to lists of access control entries which make up the
effective ACLs that this rolemap would generate when applied to VOB objects.
|
static PropertyNameList.PropertyName<Boolean> |
IS_IN_USE
Is this rolemap in use?
|
static PropertyNameList.PropertyName<CcPolicy> |
POLICY
Policy used to define the ACLs for this rolemap.
|
static PropertyNameList.PropertyName<List<CcRolemapEntry>> |
ROLEMAP_ENTRIES
List of role-to-principal bindings which define this rolemap
|
HAS_SHARED_MASTERSHIP, INSTANCE_CONSTRAINT, SCOPEATTRIBUTE_LIST, CC_MASTER_REPLICA, CURRENT_REPLICA, EFFECTIVE_ACL, HAS_LOCAL_MASTERSHIP, HYPERLINK_LIST, LOCK_INFO, MY_EFFECTIVE_ACCESS, MY_EFFECTIVE_ACL, PERMISSIONS, ROLEMAP, VOBALL_PROPERTIES, AUTHENTICATION_REALM, CREATOR_GROUP_NAME, CREATOR_LOGIN_NAME, EFFICIENT_LOCATION, INVALID_PROPERTIES, REPOSITORY, STABLE_LOCATION, USER_FRIENDLY_LOCATIONALL_CUSTOM_PROPERTIES, COMMENT, CONTENT_CHARACTER_SET, CONTENT_IDENTIFIER, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CREATION_DATE, CREATOR_DISPLAY_NAME, DISPLAY_NAME, IS_EXECUTABLE, LAST_MODIFIED, PARENT_LIST, PATHNAME_LOCATION, PROVIDER_LIST, RESOURCE_IDENTIFIER, WORKSPACE_FOLDER_LIST| Modifier and Type | Method and Description |
|---|---|
CcRolemap |
doCreateCcRolemap(CcTypeBase.TypeCreateFlag[] flags,
Feedback feedback)
Create a new rolemap at the location specified by this proxy.
|
CcRolemap |
doModifyCcRolemap(CcTypeBase.TypeCreateFlag[] flags,
Feedback feedback)
Modify an existing rolemap at the location specified by this proxy.
|
Map<String,List<CcAccessControlEntry>> |
getAllEffectiveAcl()
Get the value of this resource's
ALL_EFFECTIVE_ACL property. |
boolean |
getIsInUse()
Get the value of this resource's
IS_IN_USE property. |
CcPolicy |
getPolicy()
Get the value of this resource's
POLICY property. |
List<CcRolemapEntry> |
getRolemapEntries()
Get the value of this resource's
ROLEMAP_ENTRIES property. |
void |
setPolicy(CcPolicy policy)
Set the value of this proxy's
POLICY property. |
void |
setRolemapEntries(List<CcRolemapEntry> rolemapEntries)
Set the value of this proxy's
ROLEMAP_ENTRIES property. |
getHasSharedMastership, getInstanceConstraint, getScope, setHasSharedMastership, setInstanceConstraint, setScopedoApplyAttribute, doApplyRolemap, doRemoveAttribute, doRequestForMastership, getAttributeList, getCurrentReplica, getEffectiveAcl, getHasLocalMastership, getHyperlinkList, getLockInfo, getMasterReplica, getMyEffectiveAccess, getMyEffectiveAcl, getPermissions, getRolemap, getVob, setLockInfo, setPermissionsccProvider, doReadContent, doResolve, doWriteProperties, hasSupportedProperties, isResolved, readProperties, readProperties, resolve, writeProperties, writePropertiesdoReadProperties, equals, getAllProperties, getAuthenticationRealm, getCreatorGroupName, getCreatorLoginName, getCustomProperties, getEfficientLocation, getInvalidProperties, getMetaProperties, getPropertyException, getRepository, getResourceError, getResourceIdentifier, getStableLocation, getUserFriendlyLocation, hashCode, hasProperties, initMetaProperty, proxyType, setPropertyClean, stpLocation, stpProviderdoCopy, doFind, doFindAll, doGetPropertyNameList, doGetPropertyNameList, doReadContent, doReadProperties, doUnbindAll, doWriteContent, doWriteProperties, forgetProperty, getComment, getContentCharacterSet, getContentIdentifier, getContentLanguage, getContentLength, getContentType, getCreationDate, getCreatorDisplayName, getDisplayName, getIsExecutable, getLastModified, getParentList, getPathnameLocation, getProperty, getProviderList, getWorkspaceFolderList, initProperty, location, lookupProperty, modifyLocation, propertyNameList, provider, removeProperty, setComment, setContentCharacterSet, setContentLanguage, setContentType, setCreatorDisplayName, setDisplayName, setIsExecutable, setProperty, setProperty, updatedPropertyNameListstatic final PropertyNameList.PropertyName<Map<String,List<CcAccessControlEntry>>> ALL_EFFECTIVE_ACL
static final PropertyNameList.PropertyName<Boolean> IS_IN_USE
true if the rolemap
is currently applied to one or more objects, false otherwise.static final PropertyNameList.PropertyName<CcPolicy> POLICY
static final PropertyNameList.PropertyName<List<CcRolemapEntry>> ROLEMAP_ENTRIES
CcRolemap doCreateCcRolemap(CcTypeBase.TypeCreateFlag[] flags, Feedback feedback) throws WvcmException
Create a new rolemap at the location specified by this proxy. The location should be an object name selector specifying the rolemap's name and the repository (VOB) in which to create it.
Set the required POLICY property to specify the policy
with which the rolemap should be associated.
Set the optional ROLEMAP_ENTRIES property to specify the role-to-principal bindings for
this rolemap. If this property is not set, the rolemap will be created with an empty
binding list.
Resource.COMMENT CcTypeBase.SCOPE (Not yet supported.)
flags - Resource-specific creation flags. (The ACQUIRE flag is not yet supported.)WvcmExceptionCcRolemap doModifyCcRolemap(CcTypeBase.TypeCreateFlag[] flags, Feedback feedback) throws WvcmException
Modify an existing rolemap at the location specified by this proxy. The location should be an object name selector specifying the rolemap's name and the repository (VOB) in which it is defined.
Set the optional POLICY property to modify the policy
with which the rolemap should be associated. If not specified,
the existing policy will be left unchanged.
Set the optional ROLEMAP_ENTRIES property to specify the role-to-principal bindings for
this rolemap. If this property is not set, the existing rolemap entries
will be left unchanged.
Resource.COMMENT Provides a comment for the rolemap modification,
without overriding the creation comment.flags - Resource-specific modification flags. (The ACQUIRE flag is not yet supported.)WvcmExceptionMap<String,List<CcAccessControlEntry>> getAllEffectiveAcl() throws WvcmException
ALL_EFFECTIVE_ACL property.null if the resource does not support ACLs.WvcmExceptionboolean getIsInUse() throws WvcmException
IS_IN_USE property.true if the rolemap is currently applied to one or
more objects, false otherwise.WvcmExceptionCcPolicy getPolicy() throws WvcmException
POLICY property.WvcmExceptionList<CcRolemapEntry> getRolemapEntries() throws WvcmException
ROLEMAP_ENTRIES property.WvcmExceptionvoid setPolicy(CcPolicy policy) throws WvcmException
POLICY property.
This property may only be set for use with the
doCreateCcRolemap(com.ibm.rational.wvcm.stp.cc.CcTypeBase.TypeCreateFlag[], Feedback)
or doModifyCcRolemap(com.ibm.rational.wvcm.stp.cc.CcTypeBase.TypeCreateFlag[], Feedback)
calls. It cannot be written using Resource.doWriteProperties(Feedback).WvcmException - if this proxy doesn't define a value for this property.void setRolemapEntries(List<CcRolemapEntry> rolemapEntries) throws WvcmException
ROLEMAP_ENTRIES property.
This property may only be set for use with the
doCreateCcRolemap(com.ibm.rational.wvcm.stp.cc.CcTypeBase.TypeCreateFlag[], Feedback)
or doModifyCcRolemap(com.ibm.rational.wvcm.stp.cc.CcTypeBase.TypeCreateFlag[], Feedback) calls.
It cannot be written using Resource.doWriteProperties(Feedback).WvcmException - if this proxy doesn't define a value for this property.Copyright © IBM 2018. All rights reserved.