atg.repository.linked
Class RepositoryLinkPropertyDescriptor

java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by atg.beans.SerializableFeatureDescriptor
          extended by atg.beans.DynamicPropertyDescriptor
              extended by atg.repository.RepositoryPropertyDescriptor
                  extended by atg.repository.linked.RepositoryLinkPropertyDescriptor
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class RepositoryLinkPropertyDescriptor
extends RepositoryPropertyDescriptor

A property descriptor which describes a property of a RepositoryItem which points to another RepsositoryItem in another Repository. Unlike the GSA's Repository-linking feature, this property searches the Repository that's pointed to for an item with a particular unique Id. The property that acts as a unique Id is specified in this descriptor's configuration.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.repository.RepositoryPropertyDescriptor
EMPTY_LIST, EMPTY_MAP, EMPTY_SET, FOREIGN_REPOSITORY_NAME, mCollectionOrMap
 
Fields inherited from class atg.beans.DynamicPropertyDescriptor
PORTABLE_VALUE_KEY
 
Fields inherited from class atg.beans.SerializableFeatureDescriptor
BUNDLE_ATTRIBUTE_NAME, LOCALE_ATTRIBUTE_NAME
 
Constructor Summary
RepositoryLinkPropertyDescriptor()
          Constructs a new RepositoryLinkPropertyDescriptor.
 
Method Summary
 java.lang.Class getPropertyType()
          Returns the property type.
 java.lang.Object getPropertyValue(RepositoryItemImpl pItem, java.lang.Object pCachedValue)
          Returns the value of the underlying property.
 java.lang.String getTypeName()
          Returns the name this type uses in the XML file.
 java.lang.String getUniqueIdPropertyLocal()
          Returns the property to use as the local unique id.
 java.lang.String getUniqueIdPropertyRemote()
          Returns the property to use as the remote unique id.
 boolean isLoggingDebug()
          Returns true if the repository we are part of is logging debug statements.
 void setPropertyValue(RepositoryItemImpl pItem, java.lang.Object pValue)
          Sets the property of this type for the item descriptor provided.
 void setUniqueIdPropertyLocal(java.lang.String pUniqueIdPropertyLocal)
          Sets the property to use as the local unique id.
 void setUniqueIdPropertyRemote(java.lang.String pUniqueIdPropertyRemote)
          Sets the property to use as the remote unique id.
 void setValue(java.lang.String pAttributeName, java.lang.Object pValue)
          Catches the attribute values that we care about and stores them in member variables.
 
Methods inherited from class atg.repository.RepositoryPropertyDescriptor
clone, createPropertyDescriptorFromType, getCascadeDelete, getCascadeInsert, getCascadeUpdate, getComponentItemDescriptor, getComponentPropertyBeanInfo, getDefaultValue, getDefaultValueString, getItemDescriptor, getPropertyBeanInfo, getPropertyItemDescriptor, getResourceBundle, getResourceBundleName, getUnmodifiableDefaultValue, isAssignableFrom, isCacheable, isCollectionOrMap, isDerived, isIdProperty, isIgnoreNullValue, isMultiValued, isPersistent, isQueryable, isValidValue, isVersionable, isVersionableSet, registerPropertyDescriptorClass, setCacheable, setCascadeDelete, setCascadeInsert, setCascadeUpdate, setComponentItemDescriptor, setDefaultValue, setDefaultValueString, setDerived, setIdProperty, setIgnoreNullValue, setItemDescriptor, setLoggingDebug, setPersistent, setPropertyItemDescriptor, setPropertyType, setQueryable, setResourceBundleName, setVersionable, toString
 
Methods inherited from class atg.beans.DynamicPropertyDescriptor
createLocalePropertyEditor, createLocalePropertyEditor, createPropertyEditor, getComponentPropertyType, getPropertyEditorClass, getUIPropertyEditor, isReadable, isRequired, isWritable, setComponentPropertyType, setPropertyEditorClass, setReadable, setRequired, setWritable
 
Methods inherited from class atg.beans.SerializableFeatureDescriptor
copyFeatureDescriptor, getDisplayName, getDisplayNameResource, getDisplaySortString, getShortDescription, getShortDescriptionResource, getSortString, setDisplayNameResource, setShortDescriptionResource
 
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getName, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

RepositoryLinkPropertyDescriptor

public RepositoryLinkPropertyDescriptor()
Constructs a new RepositoryLinkPropertyDescriptor.

Method Detail

getUniqueIdPropertyLocal

public java.lang.String getUniqueIdPropertyLocal()
Returns the property to use as the local unique id.


setUniqueIdPropertyLocal

public void setUniqueIdPropertyLocal(java.lang.String pUniqueIdPropertyLocal)
Sets the property to use as the local unique id.


getUniqueIdPropertyRemote

public java.lang.String getUniqueIdPropertyRemote()
Returns the property to use as the remote unique id.


setUniqueIdPropertyRemote

public void setUniqueIdPropertyRemote(java.lang.String pUniqueIdPropertyRemote)
Sets the property to use as the remote unique id.


getPropertyType

public java.lang.Class getPropertyType()
Returns the property type.

Overrides:
getPropertyType in class DynamicPropertyDescriptor

getTypeName

public java.lang.String getTypeName()
Returns the name this type uses in the XML file.

Overrides:
getTypeName in class RepositoryPropertyDescriptor

setValue

public void setValue(java.lang.String pAttributeName,
                     java.lang.Object pValue)
Catches the attribute values that we care about and stores them in member variables.

Looks for:

Overrides:
setValue in class RepositoryPropertyDescriptor

getPropertyValue

public java.lang.Object getPropertyValue(RepositoryItemImpl pItem,
                                         java.lang.Object pCachedValue)
Returns the value of the underlying property.

Overrides:
getPropertyValue in class RepositoryPropertyDescriptor

setPropertyValue

public void setPropertyValue(RepositoryItemImpl pItem,
                             java.lang.Object pValue)
Sets the property of this type for the item descriptor provided.

Overrides:
setPropertyValue in class RepositoryPropertyDescriptor

isLoggingDebug

public boolean isLoggingDebug()
Returns true if the repository we are part of is logging debug statements.

Overrides:
isLoggingDebug in class RepositoryPropertyDescriptor
Returns:
The value of the property LoggingDebug.