|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.schema.processor.Item
com.evolveum.midpoint.schema.processor.PropertyContainer
com.evolveum.midpoint.schema.processor.ResourceObject
public final class ResourceObject
Resource Object. Resource Object understands resource-specific annotations, such as identifiers, native object class, etc. Object class can be determined by using the definition (inherited from PropertyContainer)
Field Summary | |
---|---|
protected ActivationType |
activation
|
protected CredentialsType |
credentials
|
Fields inherited from class com.evolveum.midpoint.schema.processor.Item |
---|
definition, element, name, parentPath |
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable |
---|
INDENT_STRING |
Constructor Summary | |
---|---|
ResourceObject(javax.xml.namespace.QName name,
ResourceObjectDefinition definition,
java.lang.Object element,
PropertyPath parentPath)
The constructors should be used only occasionally (if used at all). |
Method Summary | |
---|---|
ActivationType |
createOrGetActivation()
|
CredentialsType |
createOrGetCredentials()
|
ResourceObjectAttribute |
findAttribute(javax.xml.namespace.QName attributeQName)
Finds a specific attribute in the resource object by name. |
ActivationType |
getActivation()
|
java.util.Set<ResourceObjectAttribute> |
getAttributes()
Returns set of resource object attributes. |
CredentialsType |
getCredentials()
|
protected java.lang.String |
getDebugDumpClassName()
Return a human readable name of this class suitable for logs. |
ResourceObjectDefinition |
getDefinition()
Returns applicable property container definition. |
ResourceObjectAttribute |
getDescriptionAttribute()
Returns description attribute of a resource object. |
ResourceObjectAttribute |
getDisplayNameAttribute()
Returns display name attribute of a resource object. |
Property |
getIdentifier()
Returns a (single) identifier. |
java.util.Set<ResourceObjectAttribute> |
getIdentifiers()
Returns identifiers. |
ResourceObjectAttribute |
getNamingAttribute()
Specifies which resource attribute should be used as a "technical" name for the account. |
java.lang.String |
getNativeObjectClass()
Returns the native object class string for the resource object. |
Property |
getSecondaryIdentifier()
Returns a (single) secondary identifier. |
java.util.Set<Property> |
getSecondaryIdentifiers()
Returns secondary identifiers. |
boolean |
isAccountType()
Indicates whether definition is should be used as account type. |
boolean |
isDefaultAccountType()
Indicates whether definition is should be used as default account type. |
void |
setActivation(ActivationType activation)
|
void |
setCredentials(CredentialsType credentials)
|
Methods inherited from class com.evolveum.midpoint.schema.processor.PropertyContainer |
---|
add, addAll, addAllReplaceExisting, additionalDumpDescription, addReplaceExisting, applyModification, applyModifications, clone, copyValues, createProperty, createPropertyContainer, debugDump, dump, equals, findItem, findItem, findOrCreateProperty, findOrCreateProperty, findOrCreatePropertyContainer, findOrCreatePropertyContainer, findProperty, findProperty, findProperty, findProperty, findPropertyContainer, findPropertyContainer, getItems, getProperties, getPropertyNames, hashCode, isEmpty, serializePropertiesToJaxb, serializeToDom, setDefinition, toString |
Methods inherited from class com.evolveum.midpoint.schema.processor.Item |
---|
copyValues, debugDump, getDisplayName, getElement, getHelp, getName, getParentPath, getPath, setDefinition, setElement, setName, setParentPath |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ActivationType activation
protected CredentialsType credentials
Constructor Detail |
---|
public ResourceObject(javax.xml.namespace.QName name, ResourceObjectDefinition definition, java.lang.Object element, PropertyPath parentPath)
Method Detail |
---|
public ResourceObjectDefinition getDefinition()
PropertyContainer
getDefinition
in class PropertyContainer
public java.util.Set<ResourceObjectAttribute> getAttributes()
public Property getIdentifier()
java.lang.IllegalStateException
- if resource object has multiple identifierspublic java.util.Set<ResourceObjectAttribute> getIdentifiers()
public Property getSecondaryIdentifier()
java.lang.IllegalStateException
- if resource object has multiple secondary identifierspublic java.util.Set<Property> getSecondaryIdentifiers()
public ResourceObjectAttribute getDescriptionAttribute()
java.lang.IllegalStateException
- if there is no definition for the referenced attributedpublic ResourceObjectAttribute getNamingAttribute()
public ResourceObjectAttribute getDisplayNameAttribute()
java.lang.IllegalStateException
- if there is no definition for the referenced attributedpublic java.lang.String getNativeObjectClass()
java.lang.IllegalStateException
- if there is more than one description attribute.public boolean isAccountType()
public boolean isDefaultAccountType()
java.lang.IllegalStateException
- if more than one default account is suggested in the schema.public ResourceObjectAttribute findAttribute(javax.xml.namespace.QName attributeQName)
attributeQName
- attribute name to find.
public ActivationType getActivation()
public ActivationType createOrGetActivation()
public void setActivation(ActivationType activation)
public CredentialsType getCredentials()
public CredentialsType createOrGetCredentials()
public void setCredentials(CredentialsType credentials)
protected java.lang.String getDebugDumpClassName()
getDebugDumpClassName
in class PropertyContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |