com.softwareag.centrasite.appl.framework.types.impl
Class ProfileImpl

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.types.impl.ProfileImpl
All Implemented Interfaces:
Profile

public class ProfileImpl
extends java.lang.Object
implements Profile


Field Summary
 
Fields inherited from interface com.softwareag.centrasite.appl.framework.types.Profile
KEY_GENERIC_PROFILE_Assocations, KEY_GENERIC_PROFILE_AuditLog, KEY_GENERIC_PROFILE_Classifications, KEY_GENERIC_PROFILE_Consumers, KEY_GENERIC_PROFILE_ExternalLinks, KEY_GENERIC_PROFILE_Notifications, KEY_GENERIC_PROFILE_ObjectSpecificProperties, KEY_GENERIC_PROFILE_Permissions, KEY_GENERIC_PROFILE_Versions, SLOT_ATTRIBUTES, SLOT_PROFILE_ID
 
Constructor Summary
ProfileImpl(javax.xml.registry.Connection connection, java.util.Locale locale, javax.xml.registry.infomodel.RegistryEntry regEntry)
          Creates a Profile by using provided Connection, Locale and RegistryEntry profile object
 
Method Summary
 void addAttribute(AttributeDescription attribute)
          Adds an attribute to the given profile.
 java.util.Collection<java.lang.String> getAttributeNames()
          Retrieves all names of attributes associated with th profile.
 java.util.Collection<AttributeDescription> getAttributes()
          Gets all attributes of the profile.
 java.lang.String getDescription()
          Returns the registry objects description.
 java.lang.String getKey()
          Retrieves the key of this profile object.
 java.lang.String getName()
          Returns the registry objects name.
 javax.xml.registry.infomodel.RegistryEntry getRegEntry()
          Returns the RegistryEntry Profile object associated with this Profile
 int getSequenceNumber()
          Retrieves this profiles's sequence number inside the type it belongs to.
 boolean isPredefined()
          Checks if this profile is one of the predefined ones.
 void removeAttribute(AttributeDescription attribute)
          Removes an attribute from the given profile.
 void setAttributeNames(java.util.Collection<java.lang.String> attributeNames)
          Adds attributes to the given profile
 void setDescription(java.lang.String description)
          Sets the registry objects description.
 void setName(java.lang.String name)
          Sets the registry objects name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileImpl

public ProfileImpl(javax.xml.registry.Connection connection,
                   java.util.Locale locale,
                   javax.xml.registry.infomodel.RegistryEntry regEntry)
            throws CSAppFrameworkException
Creates a Profile by using provided Connection, Locale and RegistryEntry profile object

Parameters:
connection -
locale -
regEntry -
Throws:
CSAppFrameworkException
Method Detail

getRegEntry

public javax.xml.registry.infomodel.RegistryEntry getRegEntry()
Returns the RegistryEntry Profile object associated with this Profile


getAttributeNames

public java.util.Collection<java.lang.String> getAttributeNames()
                                                         throws CSAppFrameworkException
Retrieves all names of attributes associated with th profile.

Specified by:
getAttributeNames in interface Profile
Returns:
attribute names
Throws:
CSAppFrameworkException

getSequenceNumber

public int getSequenceNumber()
                      throws CSAppFrameworkException
Retrieves this profiles's sequence number inside the type it belongs to.

Specified by:
getSequenceNumber in interface Profile
Returns:
int
Throws:
CSAppFrameworkException

isPredefined

public boolean isPredefined()
                     throws CSAppFrameworkException
Checks if this profile is one of the predefined ones.

Specified by:
isPredefined in interface Profile
Returns:
boolean
Throws:
CSAppFrameworkException

setAttributeNames

public void setAttributeNames(java.util.Collection<java.lang.String> attributeNames)
                       throws CSAppFrameworkException
Adds attributes to the given profile

Parameters:
attributeNames -
Throws:
CSAppFrameworkException

getDescription

public java.lang.String getDescription()
                                throws CSAppFrameworkException
Returns the registry objects description.

Specified by:
getDescription in interface Profile
Throws:
CSAppFrameworkException

getName

public java.lang.String getName()
                         throws CSAppFrameworkException
Returns the registry objects name.

Specified by:
getName in interface Profile
Throws:
CSAppFrameworkException

setDescription

public void setDescription(java.lang.String description)
                    throws CSAppFrameworkException
Sets the registry objects description.

Specified by:
setDescription in interface Profile
Throws:
CSAppFrameworkException

setName

public void setName(java.lang.String name)
             throws CSAppFrameworkException
Sets the registry objects name.

Specified by:
setName in interface Profile
Throws:
CSAppFrameworkException

getAttributes

public java.util.Collection<AttributeDescription> getAttributes()
                                                         throws CSAppFrameworkException
Gets all attributes of the profile.

Specified by:
getAttributes in interface Profile
Returns:
collection of attributes
Throws:
CSAppFrameworkException

removeAttribute

public void removeAttribute(AttributeDescription attribute)
                     throws CSAppFrameworkException
Removes an attribute from the given profile.

Specified by:
removeAttribute in interface Profile
Throws:
CSAppFrameworkException

addAttribute

public void addAttribute(AttributeDescription attribute)
                  throws CSAppFrameworkException
Adds an attribute to the given profile.

Specified by:
addAttribute in interface Profile
Throws:
CSAppFrameworkException

getKey

public java.lang.String getKey()
                        throws CSAppFrameworkException
Description copied from interface: Profile
Retrieves the key of this profile object.

Specified by:
getKey in interface Profile
Returns:
uddi key
Throws:
CSAppFrameworkException