Project: stp

com.ibm.rational.wvcm.stp.cc
Interface CcResource

All Superinterfaces:
Resource, StpResource
All Known Subinterfaces:
CcActivity, CcAttributeType, CcBaseline, CcBranch, CcBranchType, CcComponent, CcDirectory, CcDirectoryElement, CcDirectoryVersion, CcElement, CcElementType, CcFile, CcHyperlink, CcHyperlinkType, CcLabelType, CcPolicy, CcProject, CcProjectFolder, CcRegistryRegion, CcReplica, CcRolemap, CcStorageLocation, CcStream, CcSymlink, CcTriggerType, CcTypeBase, CcVersion, CcView, CcViewTag, CcVob, CcVobResource, CcVobTag

public interface CcResource
extends StpResource

A proxy for a resource in a ClearCase VOB or view.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ibm.rational.wvcm.stp.StpResource
StpResource.UnsupportedProperty
 
Nested classes/interfaces inherited from interface javax.wvcm.Resource
Resource.CopyFlag
 
Field Summary
 
Fields inherited from interface com.ibm.rational.wvcm.stp.StpResource
ALL_PROPERTIES, AUTHENTICATION_REALM, CREATOR_GROUP_NAME, CREATOR_LOGIN_NAME, EFFICIENT_LOCATION, INVALID_PROPERTIES, REPOSITORY, STABLE_LOCATION, USER_FRIENDLY_LOCATION
 
Fields inherited from interface javax.wvcm.Resource
ALL_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
 
Method Summary
 CcProvider ccProvider()
          Get the ClearCase provider associated with this resource proxy.
 CcResource doResolve()
          Construct a new proxy for this resource.
 boolean hasSupportedProperties(PropertyRequestItem wantedProp)
          Checks if this proxy contains valid values for the provided properties, if and only if, they are supported.
 boolean isResolved()
          Has this proxy already been resolved?
 
Methods inherited from interface com.ibm.rational.wvcm.stp.StpResource
doReadProperties, equals, getAllProperties, getAuthenticationRealm, getCreatorGroupName, getCreatorLoginName, getCustomProperties, getEfficientLocation, getInvalidProperties, getMetaProperties, getPropertyException, getRepository, getResourceError, getResourceIdentifier, getStableLocation, getUserFriendlyLocation, hashCode, hasProperties, initMetaProperty, proxyType, setPropertyClean, stpLocation, stpProvider
 
Methods inherited from interface javax.wvcm.Resource
doCopy, 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, updatedPropertyNameList
 

Method Detail

ccProvider

CcProvider ccProvider()
Get the ClearCase provider associated with this resource proxy. This is normally the network provider for the CCRC WAN server on which this remote resource resides, or a local provider if this is a local ClearCase resource.


doResolve

CcResource doResolve()
                     throws WvcmException
Construct a new proxy for this resource. This new proxy will be of the most correct, most derived class for this resource, based on currently available information in the resource's location, on the local client machine, and/or on the ClearCase server. In addition, this new proxy will have its identity correctly set so that its equals() and hashMap() methods will work correctly.

Unresolved resource proxies should not be used in situations where equality matters, especially in maps, lists, sets, and other collection classes.

Returns:
a new proxy of the correct, most specific resource type
Throws:
WvcmException

hasSupportedProperties

boolean hasSupportedProperties(PropertyRequestItem wantedProp)
Checks if this proxy contains valid values for the provided properties, if and only if, they are supported. Properties which are unsupported by the server are ignored.

Parameters:
wantedProp - A PropertyRequestItem, possibly with multiple nested properties, to check the value for. Cannot be null.
Returns:
true if there is an entry in this proxy for all server supported properties of the PropertyRequestItem, and those entries contain a valid value; false otherwise.

isResolved

boolean isResolved()
                   throws WvcmException
Has this proxy already been resolved?

Returns:
true if this proxy has been resolved; else false
Throws:
WvcmException
See Also:
doResolve()

Generated Fri 13-Jun-2014 11:11 PM

Copyright © IBM 2014. All rights reserved.