com.waveset.object
Class Resource

java.lang.Object
  extended bycom.waveset.object.PersistentObject
      extended bycom.waveset.object.Service
          extended bycom.waveset.object.Resource
All Implemented Interfaces:
java.lang.Comparable, javax.naming.Referenceable, XmlObject

public class Resource
extends Service


Nested Class Summary
static class Resource.Feature
          The Feature class allows each Resource instance to disable (deny) features.
static class Resource.ObjectType
           
 
Nested classes inherited from class com.waveset.object.PersistentObject
PersistentObject.Comparator, PersistentObject.InitialInstance
 
Field Summary
static java.lang.String code_id
           
static java.lang.String DEFAULT_ACCOUNT_TYPE
          The name of the "default" account type.
static java.lang.String EL_ACCOUNT_ATTRIBUTE_TYPES
           
static java.lang.String EL_ACCOUNT_TYPES
           
static java.lang.String EL_APPROVERS
           
static java.lang.String EL_EXCLUDED_ACCOUNTS_RULE
           
static java.lang.String EL_FEATURES
           
static java.lang.String EL_ID_POLICY
           
static java.lang.String EL_OBJECT_TYPES
           
static java.lang.String EL_PASSWORD_POLICY
           
static java.lang.String EL_RESOURCE_ATTRIBUTES
           
static java.lang.String EL_RESOURCE_PASSWORD_HISTORY
           
static java.lang.String EL_RESOURCE_PASSWORD_POLICY
           
static java.lang.String EL_RESOURCE_USER_FORM
           
static java.lang.String EL_RETRIES
           
static java.lang.String EL_RPC_KEY
           
static java.lang.String EL_USER_ACCOUNT_CONFIRMATION_RULE
           
static java.lang.String EL_USER_NAME_GENERATION_RULE
           
static java.lang.String EXCLUDED_RESOURCE_ACCOUNT_POLICY
           
static java.lang.String RESOURCE_PASSWORD_POLICY
           
static java.lang.String STARTUP_TYPE_AUTO
           
static java.lang.String STARTUP_TYPE_AUTO_FAILOVER
           
static java.lang.String STARTUP_TYPE_DISABLED
           
static java.lang.String STARTUP_TYPE_MANUAL
           
static java.lang.String[] STARTUP_TYPES
           
static java.lang.String[] STARTUP_TYPES_DISPLAY_NAMES
           
 
Fields inherited from class com.waveset.object.PersistentObject
_trace, trace
 
Constructor Summary
Resource()
           
Resource(org.w3c.dom.Element e)
           
Resource(java.lang.String xml)
           
 
Method Summary
 void addAccountType(java.lang.String accountType, Rule idRule)
          Add (or replace) the definition of an account type for this resource.
 void addApprover(ObjectRef ref)
          Add one approver to our approver list.
 void addApprover(WSUser admin)
          Add one approver to our approver list.
 void addFeature(Resource.Feature feature)
          Add/replace the Feature into the features map
 void addIdentityTemplate(java.lang.StringBuffer buf, int indent)
           
 void addObjectType(Resource.ObjectType objectType)
           
 void addResourceAttribute(ResourceAttribute attribute)
           
 boolean addResourceAttributeVal(Attribute attribute, java.lang.Object value)
          Adds the value to the attribute's values.
 boolean addResourceAttributeVal(java.lang.String attrId, java.lang.Object value)
          Adds the value to the attribute's values.
protected  void addRetries(java.lang.StringBuffer buf, int indent)
           
protected  void addSubclassAttributes(java.lang.StringBuffer buf)
          Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist).
protected  void addSubclassElements(java.lang.StringBuffer buf)
          Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist).
 void clearAccountTypes()
          Remove all defined account types from this resource.
 void clearApprovers()
          Clear the approvers list.
 PersistentObject cloneObject()
          Extends the PersistentObject implementation of cloneObject to ensure that the _productObjectTypes get cloned as well since they are built dynamically per server based on the server's licensed set of products
 void disableFeature(java.lang.String featureName)
          Add the feature into the features map if not present, and mark disabled.
 AccountAttributeType getAccountAttributeType(int id)
          Get the account attribute type with the specified id.
 AccountAttributeType getAccountAttributeType(java.lang.String name)
          Get the account attribute type with the specified name.
 AccountAttributeType getAccountAttributeType(java.lang.String name, java.lang.String mapName)
          Gets the account attribute with the specified name and/or map name, where the name is the name of the "Waveset" attribute and the map name is the name of the resource attribute.
 AccountAttributeType[] getAccountAttributeTypes()
           
 java.util.List getAccountTypeNames()
          Get the names of account types defined for this resource.
 ObjectRef getAccountTypeRule(java.lang.String accountType)
          Get the identity rule associated with the specified account type.
 java.lang.String getAdapterClassName()
           
 java.lang.String getApplicationName()
           
 java.util.ArrayList getApproverRefs()
          Get the list of approver object references for this role.
 WSUser[] getApprovers()
          Get an array of resolved approver objects for this resource.
protected  WSAttribute getAttributeValues(java.lang.String attrName)
           
 java.util.ArrayList getDeniedFeatures()
          zReturn of a list of the names of all the features which are currently disabled.
 Rule getEffectiveExcludedAccountsRule()
           
 Rule getEffectiveExcludedAccountsRule(LighthouseContext context)
           
 ObjectRef getEffectiveExcludedAccountsRuleRef(LighthouseContext context)
           
 Policy getEffectiveResourcePasswordPolicy(LighthouseContext context)
           
 ObjectRef getEffectiveResourcePasswordPolicyRef(LighthouseContext context)
          Differentiated from passwordPolicy in that this applies to resource accounts and not to provisioned users.
 java.util.List getEncryptedValues()
           
 EncryptionKey getEncryptionKey()
           
 ObjectRef getEncryptionKeyRef()
           
 Rule getExcludedAccountsRule()
          Optional rule to determine if an account is to be excluded from resource accounts lists.
 ObjectRef getExcludedAccountsRuleRef()
          Optional rule to determine if an account is to be excluded from resource accounts lists.
 java.util.List getFacetList()
           
 java.lang.String getFacets()
           
 Resource.Feature getFeature(java.lang.String featureName)
          Return the Feature for the given feature name
 java.util.Map getFeatures()
          Returns the current features Map
 Form getForm(boolean getAllAttrs)
          Form-based view of resource and account attributes.
 AttributeDefinition[] getIdentityAttributeDefinitions()
          Create an AccountAttributeType array of the attribute definitions in the identity template.
 java.util.Vector getIdentityTemplate()
           
 Policy getIdPolicy()
           
 ObjectRef getIdPolicyRef()
           
 java.lang.String getInstanceIdentifier(java.util.Map parameters)
           
 java.lang.String getInstanceName(java.util.Map parameters)
           
 java.util.Map getInstanceParameters()
           
 boolean getIsSource()
           
 LoginConfig.LoginConfigEntry getLoginConfigEntry()
           
 java.lang.String getMostRecentActivity()
           
 long getMostRecentActivityDate()
           
 int getNextAcctAttrTypeId()
           
 Resource.ObjectType getObjectType(java.lang.String objectType)
           
 java.util.List getObjectTypeContainerObjectTypes()
           
 java.lang.String getObjectTypeContainerObjectTypesAsString(java.lang.String delim)
           
 java.lang.String getObjectTypeDescriptionAttr(java.lang.String objectType)
           
 java.lang.String getObjectTypeDisplayNameAttr(java.lang.String objectType)
           
 java.lang.String getObjectTypeFeatureForm(java.lang.String objectType, java.lang.String featureName)
          Return the custom form name (if any) which is specified for an oject type feature
 java.util.List getObjectTypeFeatureNames(java.lang.String objectType)
           
 java.util.List getObjectTypeFeatures(java.lang.String objectType)
           
 java.lang.String getObjectTypeFeaturesAsString(java.lang.String objectType, java.lang.String delim)
           
 java.lang.String getObjectTypeIcon(java.lang.String objectType)
           
 java.lang.String getObjectTypeIdAttr(java.lang.String objectType)
           
 java.util.List getObjectTypeNames()
           
 Resource.ObjectType.ObjectAttribute getObjectTypeObjectAttribute(java.lang.String objectType, java.lang.String attrName)
           
 java.util.List getObjectTypeObjectAttributeNames(java.lang.String objectType)
           
 java.util.Map getObjectTypeObjectAttributeNamesAndTypes(java.lang.String objectType)
           
 java.util.List getObjectTypeObjectAttributes(java.lang.String objectType)
           
 java.lang.String getObjectTypeObjectClassAttr(java.lang.String objectType)
           
 java.util.List getObjectTypeObjectClasses(java.lang.String objectType)
           
 java.lang.String getObjectTypeObjectClassesOperator(java.lang.String objectType)
           
 java.util.List getObjectTypeObjectClassNames(java.lang.String objectType)
           
 java.lang.String getObjectTypePrimaryObjectClass(java.lang.String objectType)
           
 Resource.ObjectType[] getObjectTypes()
           
 java.lang.String getObjectTypesAsString(java.lang.String delim)
           
 java.lang.String getObjectTypeSearchFilter(java.lang.String objectType)
           
 java.util.List getObjectTypesSupportingFeature(java.lang.String feature)
           
 java.lang.String getObjectTypesSupportingFeatureAsString(java.lang.String feature, java.lang.String delim)
           
 java.lang.String getObjectTypeWhereObjectClassIs(java.lang.String objClass)
           
 java.util.List getParameterizedAttributes()
           
 Policy getPasswordPolicy()
           
 ObjectRef getPasswordPolicyRef()
           
 long getReconcileTime()
           
 java.util.ArrayList getReferences()
          Return the list of references within this object.
 java.util.Set getResourceAssignmentRefs()
          Return the set of possibly qualified resource object references encapsulated by this Service and any Service it contains.
 java.util.Set getResourceAssignments()
          Return the set of ResourceAssignments encapsulated by this Service and any Services it contains.
 ResourceAttribute getResourceAttribute(Attribute attribute)
           
 ResourceAttribute getResourceAttribute(java.lang.String attrId)
           
 ResourceAttribute[] getResourceAttributes()
          Gets an array of the resource attributes.
 java.lang.Object getResourceAttributeVal(Attribute attribute)
          Gets any one of the resource attribute's values.
 java.lang.Object getResourceAttributeVal(java.lang.String attrId)
          Gets any one of the resource attribute's values.
 java.lang.Object[] getResourceAttributeVals(Attribute attribute)
          Gets all of the resource attribute's values.
 java.lang.Object[] getResourceAttributeVals(java.lang.String attrId)
          Gets all of the resource attribute's values.
 java.util.Map getResourcePasswordHistory()
           
 java.util.List getResourcePasswordHistory(java.lang.String key)
           
 Policy getResourcePasswordPolicy()
           
 ObjectRef getResourcePasswordPolicyRef()
           
 java.util.List getResourceRefs()
          Return a flattened list of resource object references encapsulated by this Service and any Service it contains.
 Resource[] getResources()
          Return a flattened array of resolved resource objects encapsulated by this service and any Service it contains.
 int getRetryDelay()
           
 java.lang.String getRetryEmail()
           
 java.util.List getRetryEmailList()
          Returns a list containing email addresses as strings.
 int getRetryEmailThreshold()
           
 int getRetryMax()
           
 java.util.List getServiceRefs()
          Return a list of Service object references encapsulated by this service.
 Service[] getServices()
          Return an array of resolved service objects, immediately referenced by this object.
 java.lang.String getStartupType()
           
 WSAttributes getSummaryAttributes()
           
 long getTimeLastExamined()
           
 Type getType()
          Returns the associated Type object.
 java.lang.String getTypeDisplayString()
           
 java.lang.String getTypeDisplayString(java.util.Locale locale)
           
 java.lang.String getTypeOrDisplayString()
          Returns _typeDisplayString unless it is null, in which case, it returns _typeString.
 java.lang.String getTypeString()
           
 java.util.List getUINamesOfObjectTypesSupportingFeature(java.util.Locale locale, java.lang.String feature)
           
 Rule getUserAccountConfirmationRule()
          Optional rule to confirm that a Lighthouse user object and a resource account object refer to the same virtual identity.
 ObjectRef getUserAccountConfirmationRuleRef()
          Optional rule to confirm that a Lighthouse user object and a resource account object refer to the same virtual identity.
 ObjectRef getUserFormRef()
           
 Rule getUserNameGenerationRule()
          Optional rule to generate possible Lighthouse user names for a resource account object.
 ObjectRef getUserNameGenerationRuleRef()
          Optional rule to generate possible Lighthouse user names for a resource account object.
 boolean hasAccountTypes()
          Indicate whether account types have been defined on this resource.
static boolean hasEncryptedData()
           
 boolean hasId()
           
 Resource instantiateTemplate(java.util.Map params)
          Convert a template resource into an instance resource
 boolean isAccountTypeDefined(java.lang.String accountType)
          Indicate whether the specified account type has been defined on this resource.
 boolean isActiveSync()
           
 boolean isDeprecated()
           
 boolean isFeatureAllowed(java.lang.String featureName)
          Is the specified feature not disabled?
 boolean isNoDelete()
           
 boolean isObjectFeatureSupported(java.lang.String feature)
           
 boolean isProvision()
           
 boolean isTemplate()
           
 boolean isTemplateInstance()
           
 java.lang.String[] lhsToMapName(java.lang.String[] list)
           
 java.util.List listQueryableAttributes()
           
 java.util.List listSummaryAttributes()
          Returns the complete list of defined attributes that this type of persistent object exposes as summary attributes (regardless of whether this particular object has a value for each).
 boolean objectTypeIsContainer(java.lang.String objectType)
           
protected  void parseSubclassAttributes(org.w3c.dom.Element e)
          Each concrete subclass should parse from the XML buffer any persisted subclass-specific fields (generally, the same ones that it writes into the buffer).
protected  void parseSubclassElements(org.w3c.dom.Element e)
          Each concrete subclass should parse from the XML buffer any persisted subclass-specific elements (generally, the same ones that it writes into the buffer).
static Resource[] parseXmlArray(org.w3c.dom.Element e, PersistentObject owner)
          Parse the DOM representatino for a list of Resource objects, and return them in an array.
 void prepareForSerialization()
          Override PersistentObject to tell each AccountAttributeType to resolve any reference to an AttributeDefinition object.
 void putAccountAttributeType(AccountAttributeType attrType)
          Add the specified account attribute type to the set of account attribute types for this resource.
 void putAccountAttributeTypes(AccountAttributeType[] attrTypes)
          Add an array of account attribute types, ADDING to any existing types.
 void putResourceAttribute(ResourceAttribute attr)
          This was commented out since the set of resource attributes is typically fixed.
protected  void reEncryptSubclassAttributes()
          Each concrete subclass should parse from the XML buffer any persisted subclass-specific fields (generally, the same ones that it writes into the buffer).
 AccountAttributeType removeAccountAttributeType(java.lang.String name, java.lang.String mapName)
           
 void removeAccountType(java.lang.String accountType)
          Remove the specified account type definition from this resource.
 void removeAllAccountAttributeTypes()
          Removes the account attribute with the specified name and/or map name, where the name is the name of the "Waveset" attribute and the map name is the name of the resource attribute.
 void removeObjectType(java.lang.String objectType)
           
 void removeResourceAttribute(java.lang.String attrId)
           
 void setAccountAttributeTypes(AccountAttributeType[] types)
           
 void setActiveSync(boolean enable)
           
 void setAdapterClassName(java.lang.String className)
           
 void setApplicationName(java.lang.String n)
           
 void setApproverRefs(java.util.List refs)
          Set the list of references to administrator who can approve requests on this resource
 void setDeprecated(boolean deprecated)
           
 void setEncryptionKey(EncryptionKey key)
           
 void setExcludedAccountsRule(Rule rule)
          Optional rule to determine if an account is to be excluded from resource accounts lists.
 void setExcludedAccountsRuleRef(ObjectRef ref)
          Optional rule to determine if an account is to be excluded from resource accounts lists.
 void setFacetList(java.util.List facetList)
           
 void setFacets(java.lang.String facets)
           
 void setHasId(boolean b)
           
 void setIdentityTemplate(java.util.Vector idTemplate)
           
 void setIdPolicy(Policy p)
           
 void setIdPolicyRef(ObjectRef p)
           
 void setIsSource(boolean isSource)
           
 void setLoginConfigEntry(LoginConfig.LoginConfigEntry lcEntry)
           
 void setLoginConfigEntryDisplayName(java.lang.String displayName)
           
 void setLoginConfigEntryType(java.lang.String type)
           
 void setMostRecentActivity(java.lang.String val)
           
 void setMostRecentActivityDate(long val)
           
 void setNoDelete(boolean b)
           
 void setObjectType(Resource.ObjectType objectType)
           
 void setObjectTypes(Resource.ObjectType[] objectTypes)
           
 void setPasswordPolicy(Policy p)
           
 void setPasswordPolicyRef(ObjectRef p)
           
 void setProvision(boolean enable)
           
 void setReconcileTime(long timestamp)
           
 void setResourceAttributeDescription(ResourceAttribute attr, java.lang.String description)
          This method is called by the ResourceUpdater to allow updates to a ResourceAttribute's description
 void setResourceAttributeDisplayName(ResourceAttribute attr, java.lang.String displayName)
          This method is called by the ResourceUpdater to allow updates to a ResourceAttribute's displayName
 void setResourceAttributeFacets(ResourceAttribute attr, java.lang.String facets)
          This method is called by the ResourceUpdater to allow updates to a ResourceAttribute's facets
 void setResourceAttributeMultiValued(ResourceAttribute attr, boolean multi)
          This method is called by the ResourceUpdater to allow updates to a ResourceAttribute's multi
 boolean setResourceAttributeVal(Attribute attribute, java.lang.Object value)
          Sets the value of the attribute to the value.
 boolean setResourceAttributeVal(java.lang.String attrId, java.lang.Object value)
          Sets the value of the attribute to the value.
 boolean setResourceAttributeVals(Attribute attribute, java.lang.Object[] values)
          Sets the attribute's values to the set of values in the array.
 boolean setResourceAttributeVals(java.lang.String attrId, java.lang.Object[] values)
          Sets the attribute's values to the set of values in the array.
 void setResourcePasswordHistory(java.util.Map history)
           
 void setResourcePasswordHistory(java.lang.String key, java.util.List history)
           
 void setResourcePasswordPolicy(Policy p)
           
 void setResourcePasswordPolicyRef(ObjectRef p)
           
 void setRetryDelay(int i)
           
 void setRetryEmail(java.lang.String s)
           
 void setRetryEmailThreshold(int i)
           
 void setRetryMax(int i)
           
 void setStartupType(java.lang.String startupType)
           
 void setSupportsScanning(boolean support)
           
 void setTimeLastExamined(long timestamp)
           
 void setTypeDisplayString(java.lang.String s)
           
 void setTypeString(java.lang.String inString)
           
 void setUnlockOnPasswordReset(boolean unlockOnPasswordReset)
           
 void setUserAccountConfirmationRule(ObjectRef ref)
          Optional rule to confirm that a Lighthouse user object and a resource account object refer to the same virtual identity.
 void setUserAccountConfirmationRule(Rule rule)
          Optional rule to confirm that a Lighthouse user object and a resource account object refer to the same virtual identity.
 void setUserFormRef(ObjectRef objref)
           
 void setUserNameGenerationRule(ObjectRef ref)
          Optional rule to generate possible Lighthouse user names for a resource account object.
 void setUserNameGenerationRule(Rule rule)
          Optional rule to generate possible Lighthouse user names for a resource account object.
 boolean supportsAnyObjectTypeFeatures()
           
 boolean supportsContainerObjectTypes()
           
 boolean supportsScanning()
           
 boolean unlockOnPasswordReset()
           
 void visit(Visitor v)
          Visitor interface.
 
Methods inherited from class com.waveset.object.Service
checkForReferenceCycles, dumpSummary, findApplications, findApplications, findResourceAssignments, findResources, findRoleAttributes, findRoleExclusions, findRoles, findRoles, findServices, findServices, getFlatResourceAssignments, getFlatResourceAssignments, getFlatResources, getFlatResources, getFlatResources, getFlatResources, isOrdered, toIdentityString, toVerboseString, toVerboseString
 
Methods inherited from class com.waveset.object.PersistentObject
addCommonElements, addEndTag, addMemberObjectGroup, addMemberObjectGroup, addPersistentAttributes, addStartTag, addSummaryAttributes, addXmlHeader, attributesMatch, attributesMatch, attributesMatch, checkReference, checkReferences, clearId, cloneAs, compareTo, create, create, create, create, createLastModItem, createLastModItem, createLastModItemList, directObjectGroupMember, dump, dumpFile, equals, fakeId, getAttribute, getAttributeValues, getAuthReferences, getAuthType, getBasicAttributes, getBasicAttributes, getBasicAttributes, getCache, getCounterValue, getCreateDate, getCreator, getDisplayableName, getDisplayName, getElementName, getId, getIdOrName, getInitialInstances, getLastMod, getLastModDate, getLastModifier, getLastModItemId, getLockInfo, getMemberObjectGroupRefs, getMemberObjectGroupRefsUpTo, getMemberObjectGroups, getName, getNameOrId, getProperties, getProperty, getPropertyAsString, getPropertyList, getQueryableAttributes, getReference, getRuleDrivenMemberObjectGroupRefs, getRuleDrivenMemberObjectGroupRefsUpTo, getRuleDrivenMemberObjectGroups, getSubtype, getSummaryString, hashCode, identityEquals, isAlias, isHidden, isId, isProtected, isProtectedFromDelete, isReferencedIn, listOperationalAttributes, listQueryableReferenceAttributes, objectGroupMember, objectGroupMemberRef, parseCommonElement, parseCommonElements, parsePersistentAttributes, parseXml, parseXml, prepareToSerialize, println, reEncrypt, removeMemberObjectGroup, removeProperty, resolve, resolve, resolve, resolveArray, resolveArrayByFetching, resolveObjectReference, resolveObjectReferences, resolveReference, resolveSummaryAttributes, resolveSummaryAttributes, ruleDrivenObjectGroupMemberRef, setAuthType, setAuthType, setCache, setCreateDate, setCreator, setDisplayName, setDisplayName, setHidden, setIsAlias, setLastMod, setLastMod, setLastModDate, setLastModifier, setMemberObjectGroupRef, setMemberObjectGroupRefs, setMemberObjectGroups, setName, setProperties, setProperty, setPropertyList, setProtected, setProtectedFromDelete, setRuleDrivenMembersCache, setSubtype, setTrace, toString, toXml, toXml, toXml, toXmlFile
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

STARTUP_TYPE_AUTO

public static final java.lang.String STARTUP_TYPE_AUTO
See Also:
Constant Field Values

STARTUP_TYPE_AUTO_FAILOVER

public static final java.lang.String STARTUP_TYPE_AUTO_FAILOVER
See Also:
Constant Field Values

STARTUP_TYPE_MANUAL

public static final java.lang.String STARTUP_TYPE_MANUAL
See Also:
Constant Field Values

STARTUP_TYPE_DISABLED

public static final java.lang.String STARTUP_TYPE_DISABLED
See Also:
Constant Field Values

STARTUP_TYPES

public static final java.lang.String[] STARTUP_TYPES

STARTUP_TYPES_DISPLAY_NAMES

public static final java.lang.String[] STARTUP_TYPES_DISPLAY_NAMES

RESOURCE_PASSWORD_POLICY

public static final java.lang.String RESOURCE_PASSWORD_POLICY
See Also:
Constant Field Values

EXCLUDED_RESOURCE_ACCOUNT_POLICY

public static final java.lang.String EXCLUDED_RESOURCE_ACCOUNT_POLICY
See Also:
Constant Field Values

DEFAULT_ACCOUNT_TYPE

public static final java.lang.String DEFAULT_ACCOUNT_TYPE
The name of the "default" account type.

See Also:
Constant Field Values

EL_ACCOUNT_ATTRIBUTE_TYPES

public static final java.lang.String EL_ACCOUNT_ATTRIBUTE_TYPES
See Also:
Constant Field Values

EL_APPROVERS

public static final java.lang.String EL_APPROVERS
See Also:
Constant Field Values

EL_ID_POLICY

public static final java.lang.String EL_ID_POLICY
See Also:
Constant Field Values

EL_PASSWORD_POLICY

public static final java.lang.String EL_PASSWORD_POLICY
See Also:
Constant Field Values

EL_RESOURCE_PASSWORD_POLICY

public static final java.lang.String EL_RESOURCE_PASSWORD_POLICY
See Also:
Constant Field Values

EL_RESOURCE_PASSWORD_HISTORY

public static final java.lang.String EL_RESOURCE_PASSWORD_HISTORY
See Also:
Constant Field Values

EL_RESOURCE_ATTRIBUTES

public static final java.lang.String EL_RESOURCE_ATTRIBUTES
See Also:
Constant Field Values

EL_RESOURCE_USER_FORM

public static final java.lang.String EL_RESOURCE_USER_FORM
See Also:
Constant Field Values

EL_USER_NAME_GENERATION_RULE

public static final java.lang.String EL_USER_NAME_GENERATION_RULE
See Also:
Constant Field Values

EL_USER_ACCOUNT_CONFIRMATION_RULE

public static final java.lang.String EL_USER_ACCOUNT_CONFIRMATION_RULE
See Also:
Constant Field Values

EL_EXCLUDED_ACCOUNTS_RULE

public static final java.lang.String EL_EXCLUDED_ACCOUNTS_RULE
See Also:
Constant Field Values

EL_OBJECT_TYPES

public static final java.lang.String EL_OBJECT_TYPES
See Also:
Constant Field Values

EL_FEATURES

public static final java.lang.String EL_FEATURES
See Also:
Constant Field Values

EL_RETRIES

public static final java.lang.String EL_RETRIES
See Also:
Constant Field Values

EL_RPC_KEY

public static final java.lang.String EL_RPC_KEY
See Also:
Constant Field Values

EL_ACCOUNT_TYPES

public static final java.lang.String EL_ACCOUNT_TYPES
See Also:
Constant Field Values
Constructor Detail

Resource

public Resource()

Resource

public Resource(java.lang.String xml)
         throws WavesetException

Resource

public Resource(org.w3c.dom.Element e)
         throws WavesetException
Method Detail

getTimeLastExamined

public long getTimeLastExamined()

setTimeLastExamined

public void setTimeLastExamined(long timestamp)

getReconcileTime

public long getReconcileTime()

setReconcileTime

public void setReconcileTime(long timestamp)

getMostRecentActivity

public java.lang.String getMostRecentActivity()

setMostRecentActivity

public void setMostRecentActivity(java.lang.String val)

getMostRecentActivityDate

public long getMostRecentActivityDate()

setMostRecentActivityDate

public void setMostRecentActivityDate(long val)

getUserNameGenerationRule

public Rule getUserNameGenerationRule()
                               throws WavesetException
Optional rule to generate possible Lighthouse user names for a resource account object.

Throws:
WavesetException

getUserNameGenerationRuleRef

public ObjectRef getUserNameGenerationRuleRef()
Optional rule to generate possible Lighthouse user names for a resource account object.


setUserNameGenerationRule

public void setUserNameGenerationRule(ObjectRef ref)
Optional rule to generate possible Lighthouse user names for a resource account object.


setUserNameGenerationRule

public void setUserNameGenerationRule(Rule rule)
Optional rule to generate possible Lighthouse user names for a resource account object.


getUserAccountConfirmationRule

public Rule getUserAccountConfirmationRule()
                                    throws WavesetException
Optional rule to confirm that a Lighthouse user object and a resource account object refer to the same virtual identity.

Throws:
WavesetException

getUserAccountConfirmationRuleRef

public ObjectRef getUserAccountConfirmationRuleRef()
Optional rule to confirm that a Lighthouse user object and a resource account object refer to the same virtual identity.


setUserAccountConfirmationRule

public void setUserAccountConfirmationRule(ObjectRef ref)
Optional rule to confirm that a Lighthouse user object and a resource account object refer to the same virtual identity.


setUserAccountConfirmationRule

public void setUserAccountConfirmationRule(Rule rule)
Optional rule to confirm that a Lighthouse user object and a resource account object refer to the same virtual identity.


getExcludedAccountsRule

public Rule getExcludedAccountsRule()
                             throws WavesetException
Optional rule to determine if an account is to be excluded from resource accounts lists.

Throws:
WavesetException

getExcludedAccountsRuleRef

public ObjectRef getExcludedAccountsRuleRef()
Optional rule to determine if an account is to be excluded from resource accounts lists.


setExcludedAccountsRuleRef

public void setExcludedAccountsRuleRef(ObjectRef ref)
Optional rule to determine if an account is to be excluded from resource accounts lists.


setExcludedAccountsRule

public void setExcludedAccountsRule(Rule rule)
Optional rule to determine if an account is to be excluded from resource accounts lists.


getEffectiveExcludedAccountsRuleRef

public ObjectRef getEffectiveExcludedAccountsRuleRef(LighthouseContext context)
                                              throws WavesetException
Throws:
WavesetException

getEffectiveExcludedAccountsRule

public Rule getEffectiveExcludedAccountsRule(LighthouseContext context)
                                      throws WavesetException
Throws:
WavesetException

getEffectiveExcludedAccountsRule

public Rule getEffectiveExcludedAccountsRule()
                                      throws WavesetException
Throws:
WavesetException

getEncryptionKey

public EncryptionKey getEncryptionKey()
                               throws WavesetException
Throws:
WavesetException

getEncryptionKeyRef

public ObjectRef getEncryptionKeyRef()

setEncryptionKey

public void setEncryptionKey(EncryptionKey key)

isTemplate

public boolean isTemplate()

isTemplateInstance

public boolean isTemplateInstance()

getParameterizedAttributes

public java.util.List getParameterizedAttributes()

getInstanceParameters

public java.util.Map getInstanceParameters()

getInstanceIdentifier

public java.lang.String getInstanceIdentifier(java.util.Map parameters)

getInstanceName

public java.lang.String getInstanceName(java.util.Map parameters)

visit

public void visit(Visitor v)
           throws WavesetException
Visitor interface.

Overrides:
visit in class PersistentObject
Throws:
WavesetException

getType

public Type getType()
Returns the associated Type object.

Specified by:
getType in class PersistentObject

cloneObject

public PersistentObject cloneObject()
                             throws WavesetException
Extends the PersistentObject implementation of cloneObject to ensure that the _productObjectTypes get cloned as well since they are built dynamically per server based on the server's licensed set of products

Overrides:
cloneObject in class PersistentObject
Returns:
an exact duplicate of this object

Throws:
WavesetException - if there were problems duplicating the object

getReferences

public java.util.ArrayList getReferences()
Return the list of references within this object.

Overrides:
getReferences in class PersistentObject

getIdPolicyRef

public ObjectRef getIdPolicyRef()

setIdPolicyRef

public void setIdPolicyRef(ObjectRef p)

getPasswordPolicyRef

public ObjectRef getPasswordPolicyRef()

setPasswordPolicyRef

public void setPasswordPolicyRef(ObjectRef p)

getResourcePasswordPolicyRef

public ObjectRef getResourcePasswordPolicyRef()

setResourcePasswordPolicyRef

public void setResourcePasswordPolicyRef(ObjectRef p)

getIdPolicy

public Policy getIdPolicy()
                   throws WavesetException
Throws:
WavesetException

setIdPolicy

public void setIdPolicy(Policy p)

getPasswordPolicy

public Policy getPasswordPolicy()
                         throws WavesetException
Throws:
WavesetException

setPasswordPolicy

public void setPasswordPolicy(Policy p)

getEffectiveResourcePasswordPolicyRef

public ObjectRef getEffectiveResourcePasswordPolicyRef(LighthouseContext context)
                                                throws WavesetException
Differentiated from passwordPolicy in that this applies to resource accounts and not to provisioned users.

Throws:
WavesetException

getEffectiveResourcePasswordPolicy

public Policy getEffectiveResourcePasswordPolicy(LighthouseContext context)
                                          throws WavesetException
Throws:
WavesetException

getResourcePasswordPolicy

public Policy getResourcePasswordPolicy()
                                 throws WavesetException
Throws:
WavesetException

setResourcePasswordPolicy

public void setResourcePasswordPolicy(Policy p)
                               throws WavesetException
Throws:
WavesetException

getAdapterClassName

public java.lang.String getAdapterClassName()

setAdapterClassName

public void setAdapterClassName(java.lang.String className)

isNoDelete

public boolean isNoDelete()

setNoDelete

public void setNoDelete(boolean b)

isDeprecated

public boolean isDeprecated()

setDeprecated

public void setDeprecated(boolean deprecated)

getFeatures

public java.util.Map getFeatures()
Returns the current features Map


getFeature

public Resource.Feature getFeature(java.lang.String featureName)
Return the Feature for the given feature name

Parameters:
featureName - the name of the desired Feature
Returns:
null if Feature not defined, otherwise the desired Feature

addFeature

public void addFeature(Resource.Feature feature)
Add/replace the Feature into the features map

Parameters:
feature - the Feature to put into Map

disableFeature

public final void disableFeature(java.lang.String featureName)
Add the feature into the features map if not present, and mark disabled.

Parameters:
featureName -

isActiveSync

public boolean isActiveSync()

setActiveSync

public void setActiveSync(boolean enable)

setProvision

public void setProvision(boolean enable)

isProvision

public boolean isProvision()

getFacets

public java.lang.String getFacets()

setFacets

public void setFacets(java.lang.String facets)

getFacetList

public java.util.List getFacetList()

setFacetList

public void setFacetList(java.util.List facetList)

clearAccountTypes

public void clearAccountTypes()
Remove all defined account types from this resource.


hasAccountTypes

public boolean hasAccountTypes()
Indicate whether account types have been defined on this resource.

Returns:
whether account types have been defined.

addAccountType

public void addAccountType(java.lang.String accountType,
                           Rule idRule)
Add (or replace) the definition of an account type for this resource.


getAccountTypeNames

public java.util.List getAccountTypeNames()
Get the names of account types defined for this resource.

Returns:
a List containing the names of the defined account types.

getAccountTypeRule

public ObjectRef getAccountTypeRule(java.lang.String accountType)
Get the identity rule associated with the specified account type.

Returns:
an ObjectRef to the Rule to use to generate identity for accounts of this type.

isAccountTypeDefined

public boolean isAccountTypeDefined(java.lang.String accountType)
Indicate whether the specified account type has been defined on this resource.

Returns:
whether the account type is defined.

removeAccountType

public void removeAccountType(java.lang.String accountType)
Remove the specified account type definition from this resource.


getTypeDisplayString

public java.lang.String getTypeDisplayString(java.util.Locale locale)

getTypeOrDisplayString

public java.lang.String getTypeOrDisplayString()
Returns _typeDisplayString unless it is null, in which case, it returns _typeString.


getTypeDisplayString

public java.lang.String getTypeDisplayString()

setTypeDisplayString

public void setTypeDisplayString(java.lang.String s)

getTypeString

public java.lang.String getTypeString()

setTypeString

public void setTypeString(java.lang.String inString)

getIdentityTemplate

public java.util.Vector getIdentityTemplate()

setIdentityTemplate

public void setIdentityTemplate(java.util.Vector idTemplate)

hasId

public boolean hasId()

setHasId

public void setHasId(boolean b)

supportsScanning

public boolean supportsScanning()

setSupportsScanning

public void setSupportsScanning(boolean support)

supportsContainerObjectTypes

public boolean supportsContainerObjectTypes()

getStartupType

public java.lang.String getStartupType()

setStartupType

public void setStartupType(java.lang.String startupType)

getIsSource

public boolean getIsSource()

setIsSource

public void setIsSource(boolean isSource)

getRetryMax

public int getRetryMax()

setRetryMax

public void setRetryMax(int i)

getRetryDelay

public int getRetryDelay()

setRetryDelay

public void setRetryDelay(int i)

getRetryEmail

public java.lang.String getRetryEmail()

getRetryEmailList

public java.util.List getRetryEmailList()
Returns a list containing email addresses as strings.


setRetryEmail

public void setRetryEmail(java.lang.String s)

getRetryEmailThreshold

public int getRetryEmailThreshold()

setRetryEmailThreshold

public void setRetryEmailThreshold(int i)

getResourcePasswordHistory

public java.util.Map getResourcePasswordHistory()

getResourcePasswordHistory

public java.util.List getResourcePasswordHistory(java.lang.String key)

setResourcePasswordHistory

public void setResourcePasswordHistory(java.util.Map history)

setResourcePasswordHistory

public void setResourcePasswordHistory(java.lang.String key,
                                       java.util.List history)

getApplicationName

public java.lang.String getApplicationName()

setApplicationName

public void setApplicationName(java.lang.String n)

getUserFormRef

public ObjectRef getUserFormRef()

setUserFormRef

public void setUserFormRef(ObjectRef objref)

unlockOnPasswordReset

public boolean unlockOnPasswordReset()

setUnlockOnPasswordReset

public void setUnlockOnPasswordReset(boolean unlockOnPasswordReset)

listQueryableAttributes

public java.util.List listQueryableAttributes()
Overrides:
listQueryableAttributes in class PersistentObject
Returns:
the complete list of defined attributes that this type of PersistentObject exposes as queryable attributes (regardless of whether this object has a value for each).

Any subclass of PersistentObject that overrides this method should first invoke super.listQueryableAttributes() to ensure that the subclass includes queryable attributes that are common to all PersistentObjects.


listSummaryAttributes

public java.util.List listSummaryAttributes()
Description copied from class: PersistentObject
Returns the complete list of defined attributes that this type of persistent object exposes as summary attributes (regardless of whether this particular object has a value for each).

Any subclass of PersistentObject that overrides this method should first invoke super.listSummaryAttributes() to ensure that the subclass includes summary attributes that are common to all PersistentObjects.

Any subclass that overrides this implementation must also consider the length of the summary string that will be generated from these attributes.

Overrides:
listSummaryAttributes in class PersistentObject
Returns:
the complete list of summary attributes that this type of PersistentObject exposes (regardless of whether this object has a value for each).

Any subclass of PersistentObject that overrides this method should first invoke super.listSummaryAttributes() to ensure that the subclass includes summary attributes that are common to all PersistentObjects.

See Also:
Constants.MAX_SUMMARY_STRING_LENGTH, PersistentObject.getSummaryString()

getAttributeValues

protected WSAttribute getAttributeValues(java.lang.String attrName)
Overrides:
getAttributeValues in class PersistentObject
Parameters:
attrName - - the name of the attribute for which to return values.
Returns:
a WSAttribute that represents the value (or values) that this object contains for the specified attribute.


getSummaryAttributes

public WSAttributes getSummaryAttributes()
Overrides:
getSummaryAttributes in class PersistentObject
Returns:
attribute values to expose when this object appears in a list. The WSAttributes contains a WSAttribute for each attribute. Each WSAttribute may contain multiple values.

This default implementation adds values for attributes that are common to most (if not all) PersistentObjects.

See Also:

If a subclass wants to expose a different set of summary attributes, that subclass should override {@link #listSummaryAttributes}. In order to supply values for summary attributes that may not be available in PersistentObject (e.g., from a field specified to that subclass), such a subclass may also override {@link #getAttributeValues(String)}.

A subclass should not need to override this method (except perhaps in extraordinary circumstances).


getEncryptedValues

public java.util.List getEncryptedValues()
Overrides:
getEncryptedValues in class PersistentObject
Returns:
the complete set of object values whose type is encrypted data (regardless of whether this object has a value for each).

Any subclass of PersistentObject that overrides this method must first invoke super.getEncryptedValues() to ensure that the list of encrypted values for PersistentObjects are included in the subclasses list.


getServiceRefs

public java.util.List getServiceRefs()
Description copied from class: Service
Return a list of Service object references encapsulated by this service.

Specified by:
getServiceRefs in class Service

getServices

public Service[] getServices()
                      throws WavesetException
Description copied from class: Service
Return an array of resolved service objects, immediately referenced by this object.

Specified by:
getServices in class Service
Throws:
WavesetException

getResourceRefs

public java.util.List getResourceRefs()
                               throws WavesetException
Description copied from class: Service
Return a flattened list of resource object references encapsulated by this Service and any Service it contains.

Specified by:
getResourceRefs in class Service
Throws:
WavesetException

getResourceAssignmentRefs

public java.util.Set getResourceAssignmentRefs()
                                        throws WavesetException
Description copied from class: Service
Return the set of possibly qualified resource object references encapsulated by this Service and any Service it contains.

Specified by:
getResourceAssignmentRefs in class Service
Throws:
WavesetException

getResources

public Resource[] getResources()
                        throws WavesetException
Description copied from class: Service
Return a flattened array of resolved resource objects encapsulated by this service and any Service it contains.

Specified by:
getResources in class Service
Throws:
WavesetException

getResourceAssignments

public java.util.Set getResourceAssignments()
                                     throws WavesetException
Description copied from class: Service
Return the set of ResourceAssignments encapsulated by this Service and any Services it contains.

Specified by:
getResourceAssignments in class Service
Throws:
WavesetException

getApproverRefs

public java.util.ArrayList getApproverRefs()
Get the list of approver object references for this role.

These are references to Administrators that are considered approvers for provisioning requests using this resource.


getApprovers

public WSUser[] getApprovers()
                      throws WavesetException
Get an array of resolved approver objects for this resource.

Throws:
WavesetException

clearApprovers

public void clearApprovers()
Clear the approvers list.


setApproverRefs

public void setApproverRefs(java.util.List refs)
                     throws WavesetException
Set the list of references to administrator who can approve requests on this resource

Throws:
WavesetException

addApprover

public void addApprover(ObjectRef ref)
Add one approver to our approver list.

These should be administrators with APPROVAL rights. Can't check that here, it will have to be done as part of the Checkin validator. The GUI currently tries to prevent selection of bad values.


addApprover

public void addApprover(WSUser admin)
Add one approver to our approver list.

These should be administrators with APPROVAL rights. Can't check that here, it will have to be done as part of the Checkin validator. The GUI currently tries to prevent selection of bad values.

If you want to specify a completely new list, call clearApprovers first.

See Also:
clearApprovers()

getResourceAttribute

public ResourceAttribute getResourceAttribute(Attribute attribute)

getResourceAttribute

public ResourceAttribute getResourceAttribute(java.lang.String attrId)

removeResourceAttribute

public void removeResourceAttribute(java.lang.String attrId)

getResourceAttributeVal

public java.lang.Object getResourceAttributeVal(Attribute attribute)
Gets any one of the resource attribute's values.


getResourceAttributeVal

public java.lang.Object getResourceAttributeVal(java.lang.String attrId)
Gets any one of the resource attribute's values.


getResourceAttributes

public ResourceAttribute[] getResourceAttributes()
Gets an array of the resource attributes.


getResourceAttributeVals

public java.lang.Object[] getResourceAttributeVals(Attribute attribute)
Gets all of the resource attribute's values. Returns an empty array if there are no values. Returns null if the attribute doesn't exist.


getResourceAttributeVals

public java.lang.Object[] getResourceAttributeVals(java.lang.String attrId)
Gets all of the resource attribute's values. Returns an empty array if there are no values. Returns null if the attribute doesn't exist.


addResourceAttributeVal

public boolean addResourceAttributeVal(Attribute attribute,
                                       java.lang.Object value)
                                throws WavesetException
Adds the value to the attribute's values. Nothing is done if the value is null.

Throws:
WavesetException

addResourceAttribute

public void addResourceAttribute(ResourceAttribute attribute)

addResourceAttributeVal

public boolean addResourceAttributeVal(java.lang.String attrId,
                                       java.lang.Object value)
                                throws WavesetException
Adds the value to the attribute's values. Nothing is done if the value is null.

Throws:
WavesetException

setResourceAttributeVal

public boolean setResourceAttributeVal(Attribute attribute,
                                       java.lang.Object value)
                                throws WavesetException
Sets the value of the attribute to the value. If the value is null, then all of the attribute's values are cleared (i.e., the attribute no longer has a value).

Throws:
WavesetException

setResourceAttributeVal

public boolean setResourceAttributeVal(java.lang.String attrId,
                                       java.lang.Object value)
                                throws WavesetException
Sets the value of the attribute to the value. If the value is null, then all of the attribute's values are cleared (i.e., the attribute no longer has a value).

Throws:
WavesetException

setResourceAttributeVals

public boolean setResourceAttributeVals(Attribute attribute,
                                        java.lang.Object[] values)
Sets the attribute's values to the set of values in the array. If the array is null, then all of the attribute's values are cleared (i.e., the attribute no longer has a value).


setResourceAttributeVals

public boolean setResourceAttributeVals(java.lang.String attrId,
                                        java.lang.Object[] values)
Sets the attribute's values to the set of values in the array. If the array is null, then all of the attribute's values are cleared (i.e., the attribute no longer has a value).


setResourceAttributeDescription

public void setResourceAttributeDescription(ResourceAttribute attr,
                                            java.lang.String description)
                                     throws WavesetException
This method is called by the ResourceUpdater to allow updates to a ResourceAttribute's description

Throws:
WavesetException

setResourceAttributeDisplayName

public void setResourceAttributeDisplayName(ResourceAttribute attr,
                                            java.lang.String displayName)
                                     throws WavesetException
This method is called by the ResourceUpdater to allow updates to a ResourceAttribute's displayName

Throws:
WavesetException

instantiateTemplate

public Resource instantiateTemplate(java.util.Map params)
                             throws WavesetException
Convert a template resource into an instance resource

Throws:
WavesetException

setResourceAttributeFacets

public void setResourceAttributeFacets(ResourceAttribute attr,
                                       java.lang.String facets)
                                throws WavesetException
This method is called by the ResourceUpdater to allow updates to a ResourceAttribute's facets

Throws:
WavesetException

setResourceAttributeMultiValued

public void setResourceAttributeMultiValued(ResourceAttribute attr,
                                            boolean multi)
                                     throws WavesetException
This method is called by the ResourceUpdater to allow updates to a ResourceAttribute's multi

Throws:
WavesetException

putResourceAttribute

public void putResourceAttribute(ResourceAttribute attr)
                          throws WavesetException
This was commented out since the set of resource attributes is typically fixed. However, there are some resource attributes that are optional and are only set in test/unusual circumstances. We may also use this method during upgrades.

Throws:
WavesetException

getAccountAttributeType

public AccountAttributeType getAccountAttributeType(java.lang.String name,
                                                    java.lang.String mapName)
                                             throws WavesetException
Gets the account attribute with the specified name and/or map name, where the name is the name of the "Waveset" attribute and the map name is the name of the resource attribute. If the name or map name is null, then the first acccount attribute type that matches the non-null argument is returned. Attribute account types need to be found using both the waveset attr name and resource attr name since a waveset attribute could map to more than one resource attr, and vice versa. Therefore there could be duplicates when looking up either by name or map name only.

Throws:
WavesetException

getAccountAttributeType

public AccountAttributeType getAccountAttributeType(java.lang.String name)
                                             throws WavesetException
Get the account attribute type with the specified name. In theory there could be more than one with different map names, we return the first one we find. It must be the case that if multiple entries for the same attribute exist, that they must have identical definitions apart from the map name and map type. // jsl - added this to make it easier to lookup attribute definitions // by name

Throws:
WavesetException

getAccountAttributeType

public AccountAttributeType getAccountAttributeType(int id)
Get the account attribute type with the specified id. Id's are unique within resources.


removeAllAccountAttributeTypes

public void removeAllAccountAttributeTypes()
Removes the account attribute with the specified name and/or map name, where the name is the name of the "Waveset" attribute and the map name is the name of the resource attribute. If the name or map name is null, then the first acccount attribute type that matches the non-null argument is returned. Attribute account types need to be found using both the waveset attr name and resource attr name since a waveset attribute could map to more than one resource attr, and vice versa. Therefore there could be duplicates when looking up either by name or map name only. PWD: added removeAllAccountAttributeTypes


removeAccountAttributeType

public AccountAttributeType removeAccountAttributeType(java.lang.String name,
                                                       java.lang.String mapName)
                                                throws WavesetException
Throws:
WavesetException

lhsToMapName

public java.lang.String[] lhsToMapName(java.lang.String[] list)
Parameters:
list - a String[] of the lhs values to find their mapping
Returns:
a non null, but could be empty, String[] of matching MapNames (rhs). The returned list and will follow: 0 <= returnedList.length <= (inputList == null ? 0 : inputList.length).

getAccountAttributeTypes

public AccountAttributeType[] getAccountAttributeTypes()

setAccountAttributeTypes

public void setAccountAttributeTypes(AccountAttributeType[] types)

getNextAcctAttrTypeId

public int getNextAcctAttrTypeId()

getIdentityAttributeDefinitions

public AttributeDefinition[] getIdentityAttributeDefinitions()
Create an AccountAttributeType array of the attribute definitions in the identity template. This will be used in the UI and combined with the return value of getAccountAttributeTypes() to build the list of attributes that are to be queried for.


putAccountAttributeTypes

public void putAccountAttributeTypes(AccountAttributeType[] attrTypes)
                              throws WavesetException
Add an array of account attribute types, ADDING to any existing types. If you want to set the types to the passed-in array, first call removeAllAccountAttributeTypes().

Throws:
WavesetException

putAccountAttributeType

public void putAccountAttributeType(AccountAttributeType attrType)
                             throws WavesetException
Add the specified account attribute type to the set of account attribute types for this resource. If there is an account attribute type with the same name and map name, it is replaced by the new one.

Throws:
WavesetException

getForm

public Form getForm(boolean getAllAttrs)
             throws WavesetException
Form-based view of resource and account attributes. A form will be built by retrieving all resource and account attributes from the resource and converting them into the format defined by a Form. This form can then be requested and used, in conjunction with other resource forms and the master User Form for constructing the set of attributes to be displayed for creation and editing of a user. All resources, both those directly assigned to a user as well as those assigned to a role can return their form. Note that the form is generated dynamically and therefore there is no private data field for it and it is not serialized in Xml.

Throws:
WavesetException

getObjectTypes

public Resource.ObjectType[] getObjectTypes()

getObjectTypeNames

public java.util.List getObjectTypeNames()

getObjectTypesAsString

public java.lang.String getObjectTypesAsString(java.lang.String delim)

getObjectTypesSupportingFeature

public java.util.List getObjectTypesSupportingFeature(java.lang.String feature)

getUINamesOfObjectTypesSupportingFeature

public java.util.List getUINamesOfObjectTypesSupportingFeature(java.util.Locale locale,
                                                               java.lang.String feature)

getObjectTypesSupportingFeatureAsString

public java.lang.String getObjectTypesSupportingFeatureAsString(java.lang.String feature,
                                                                java.lang.String delim)

setObjectTypes

public void setObjectTypes(Resource.ObjectType[] objectTypes)

setObjectType

public void setObjectType(Resource.ObjectType objectType)

addObjectType

public void addObjectType(Resource.ObjectType objectType)

getObjectType

public Resource.ObjectType getObjectType(java.lang.String objectType)

removeObjectType

public void removeObjectType(java.lang.String objectType)

getObjectTypeIcon

public java.lang.String getObjectTypeIcon(java.lang.String objectType)

getObjectTypeObjectClasses

public java.util.List getObjectTypeObjectClasses(java.lang.String objectType)

getObjectTypeObjectClassNames

public java.util.List getObjectTypeObjectClassNames(java.lang.String objectType)

getObjectTypeWhereObjectClassIs

public java.lang.String getObjectTypeWhereObjectClassIs(java.lang.String objClass)

getObjectTypePrimaryObjectClass

public java.lang.String getObjectTypePrimaryObjectClass(java.lang.String objectType)

getObjectTypeObjectClassesOperator

public java.lang.String getObjectTypeObjectClassesOperator(java.lang.String objectType)

getObjectTypeSearchFilter

public java.lang.String getObjectTypeSearchFilter(java.lang.String objectType)

getObjectTypeObjectAttributes

public java.util.List getObjectTypeObjectAttributes(java.lang.String objectType)

getObjectTypeObjectAttributeNames

public java.util.List getObjectTypeObjectAttributeNames(java.lang.String objectType)

getObjectTypeObjectAttributeNamesAndTypes

public java.util.Map getObjectTypeObjectAttributeNamesAndTypes(java.lang.String objectType)

getObjectTypeObjectAttribute

public Resource.ObjectType.ObjectAttribute getObjectTypeObjectAttribute(java.lang.String objectType,
                                                                        java.lang.String attrName)

getObjectTypeIdAttr

public java.lang.String getObjectTypeIdAttr(java.lang.String objectType)
                                     throws WavesetException
Throws:
WavesetException

getObjectTypeDisplayNameAttr

public java.lang.String getObjectTypeDisplayNameAttr(java.lang.String objectType)
                                              throws WavesetException
Throws:
WavesetException

getObjectTypeDescriptionAttr

public java.lang.String getObjectTypeDescriptionAttr(java.lang.String objectType)

getObjectTypeObjectClassAttr

public java.lang.String getObjectTypeObjectClassAttr(java.lang.String objectType)

objectTypeIsContainer

public boolean objectTypeIsContainer(java.lang.String objectType)

getObjectTypeContainerObjectTypes

public java.util.List getObjectTypeContainerObjectTypes()

getObjectTypeContainerObjectTypesAsString

public java.lang.String getObjectTypeContainerObjectTypesAsString(java.lang.String delim)

supportsAnyObjectTypeFeatures

public boolean supportsAnyObjectTypeFeatures()

getObjectTypeFeatures

public java.util.List getObjectTypeFeatures(java.lang.String objectType)

isObjectFeatureSupported

public boolean isObjectFeatureSupported(java.lang.String feature)

getObjectTypeFeatureNames

public java.util.List getObjectTypeFeatureNames(java.lang.String objectType)

getObjectTypeFeatureForm

public java.lang.String getObjectTypeFeatureForm(java.lang.String objectType,
                                                 java.lang.String featureName)
Return the custom form name (if any) which is specified for an oject type feature

Parameters:
objectType - name of the objectType
featureName - name of the object type feature
Returns:
the custom form name specified with the object type feature. Null if no custom form specified.

getObjectTypeFeaturesAsString

public java.lang.String getObjectTypeFeaturesAsString(java.lang.String objectType,
                                                      java.lang.String delim)

getLoginConfigEntry

public LoginConfig.LoginConfigEntry getLoginConfigEntry()

setLoginConfigEntry

public void setLoginConfigEntry(LoginConfig.LoginConfigEntry lcEntry)

setLoginConfigEntryType

public void setLoginConfigEntryType(java.lang.String type)

setLoginConfigEntryDisplayName

public void setLoginConfigEntryDisplayName(java.lang.String displayName)

prepareForSerialization

public void prepareForSerialization()
                             throws WavesetException
Override PersistentObject to tell each AccountAttributeType to resolve any reference to an AttributeDefinition object.

Overrides:
prepareForSerialization in class PersistentObject
Throws:
WavesetException

addSubclassAttributes

protected void addSubclassAttributes(java.lang.StringBuffer buf)
Description copied from class: PersistentObject
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). PersistentObject's default implementation is a no-op.

NOTE: Any subclass that overrides this method must similarly override parseSubclassAttributes() so that the subclass attributes are restored.

Overrides:
addSubclassAttributes in class PersistentObject
See Also:


addSubclassElements

protected void addSubclassElements(java.lang.StringBuffer buf)
Description copied from class: PersistentObject
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). PersistentObject's default implementation is a no-op.

NOTE: Any subclass that overrides this method must similarly override parseSubclassElements() so that the subclass elements are restored.

Overrides:
addSubclassElements in class PersistentObject
See Also:


parseSubclassAttributes

protected void parseSubclassAttributes(org.w3c.dom.Element e)
                                throws WavesetException
Description copied from class: PersistentObject
Each concrete subclass should parse from the XML buffer any persisted subclass-specific fields (generally, the same ones that it writes into the buffer).

Overrides:
parseSubclassAttributes in class PersistentObject
Throws:
WavesetException
See Also:

PersistentObject's default implementation is a no-op.

, PersistentObject.parseXml(Element)

addIdentityTemplate

public void addIdentityTemplate(java.lang.StringBuffer buf,
                                int indent)

addRetries

protected void addRetries(java.lang.StringBuffer buf,
                          int indent)

hasEncryptedData

public static boolean hasEncryptedData()

reEncryptSubclassAttributes

protected void reEncryptSubclassAttributes()
                                    throws WavesetException
Description copied from class: PersistentObject
Each concrete subclass should parse from the XML buffer any persisted subclass-specific fields (generally, the same ones that it writes into the buffer). // * @see #addSubclassAttributes(StringBuffer)

PersistentObject's default implementation is a no-op.

// * @see #parseXml(Element)

Overrides:
reEncryptSubclassAttributes in class PersistentObject
Throws:
WavesetException

parseSubclassElements

protected void parseSubclassElements(org.w3c.dom.Element e)
                              throws WavesetException
Description copied from class: PersistentObject
Each concrete subclass should parse from the XML buffer any persisted subclass-specific elements (generally, the same ones that it writes into the buffer).

Overrides:
parseSubclassElements in class PersistentObject
Throws:
WavesetException
See Also:

PersistentObject's default implementation is a no-op.

, PersistentObject.parseXml(Element)

parseXmlArray

public static Resource[] parseXmlArray(org.w3c.dom.Element e,
                                       PersistentObject owner)
                                throws WavesetException
Parse the DOM representatino for a list of Resource objects, and return them in an array. The given element is assumed to be a wrapper element around the list.

Throws:
WavesetException

isFeatureAllowed

public boolean isFeatureAllowed(java.lang.String featureName)
Is the specified feature not disabled?

Parameters:
featureName - the feature of interest
Returns:
true if the feature is not specifically disabled; otherwise, false.

getDeniedFeatures

public java.util.ArrayList getDeniedFeatures()
zReturn of a list of the names of all the features which are currently disabled.