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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 object 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 object name.
|
public ProfileImpl(javax.xml.registry.Connection connection, java.util.Locale locale, javax.xml.registry.infomodel.RegistryEntry regEntry) throws CSAppFrameworkException
connection
- the JAXR connectionlocale
- the current locale.regEntry
- the Registry object.CSAppFrameworkException
- if an internal error occurs.public javax.xml.registry.infomodel.RegistryEntry getRegEntry()
public java.util.Collection<java.lang.String> getAttributeNames() throws CSAppFrameworkException
getAttributeNames
in interface Profile
CSAppFrameworkException
- if an internal error occurs.public int getSequenceNumber() throws CSAppFrameworkException
getSequenceNumber
in interface Profile
CSAppFrameworkException
- if an internal error occurs.public boolean isPredefined() throws CSAppFrameworkException
isPredefined
in interface Profile
true
if the profile is predefined.CSAppFrameworkException
- if an internal error occurs.public void setAttributeNames(java.util.Collection<java.lang.String> attributeNames) throws CSAppFrameworkException
attributeNames
- the collection of attribute names.CSAppFrameworkException
- if an internal error occurs.public java.lang.String getDescription() throws CSAppFrameworkException
getDescription
in interface Profile
CSAppFrameworkException
- if an internal error occurs.public java.lang.String getName() throws CSAppFrameworkException
getName
in interface Profile
CSAppFrameworkException
- if an internal error occurs.public void setDescription(java.lang.String description) throws CSAppFrameworkException
setDescription
in interface Profile
description
- the registry object description.CSAppFrameworkException
- if an internal error occurs.public void setName(java.lang.String name) throws CSAppFrameworkException
setName
in interface Profile
name
- the registry object name.CSAppFrameworkException
- if an internal error occurs.public java.util.Collection<AttributeDescription> getAttributes() throws CSAppFrameworkException
getAttributes
in interface Profile
CSAppFrameworkException
- if an internal error occurs.public void removeAttribute(AttributeDescription attribute) throws CSAppFrameworkException
removeAttribute
in interface Profile
attribute
- the attribute.CSAppFrameworkException
- if an internal error occurs.public void addAttribute(AttributeDescription attribute) throws CSAppFrameworkException
addAttribute
in interface Profile
attribute
- the attribute.CSAppFrameworkException
- if an internal error occurs.public java.lang.String getKey() throws CSAppFrameworkException
Profile
getKey
in interface Profile
CSAppFrameworkException
- if an internal error occurs.