com.waveset.object
Class LoginApp

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

public class LoginApp
extends PersistentObject

An object used to represent a named collection of LoginModGroup objects.


Nested Class Summary
 
Nested classes inherited from class com.waveset.object.PersistentObject
PersistentObject.Comparator, PersistentObject.InitialInstance
 
Field Summary
static java.lang.String ATT_DISABLED
           
static java.lang.String ATT_DISPLAYNAME
          XML markup.
static java.lang.String ATT_IDPWDONLY
           
static java.lang.String ATT_OBFUSCATE
           
static java.lang.String ATT_TIMEOUT
           
static java.lang.String code_id
           
static java.lang.String EL_LOGINMODGRPS
           
 
Fields inherited from class com.waveset.object.PersistentObject
_trace, trace
 
Constructor Summary
LoginApp()
          Construct a new empty LoginApp.
LoginApp(org.w3c.dom.Element e)
          Deserialize an LoginApp object from XML.
 
Method Summary
protected  void addSubclassAttributes(java.lang.StringBuffer b)
          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 b)
          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  WSAttribute getAttributeValues(java.lang.String attrName)
           
 java.util.List getFormattedSubjectTimeout()
          return subjectTimeout in an array with hours, mins, days (in that order)
 ObjectRef getLoginModGrp(GenericObject args)
          Return 1 LoginModGroup after evaulating any LoginModGroup constraints.
 LoginModGroup getLoginModGrp(int ldIndex)
          Return login mod grp by index
 java.util.List getLoginModGrpRefs()
          Return list of Login Mod Grp Refs
 LoginModGroup[] getLoginModGrps()
          Return resolved list of Login Mod Grp Objects
 java.lang.String getSubjectTimeout()
           
 WSAttributes getSummaryAttributes()
           
 Type getType()
          Return the Type object associated with this class, which will always be Type.LOGIN_APP.
 boolean isDisabled()
           
 boolean isIdPwdOnly()
           
 boolean isLoginInterface()
           
 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 obfuscateLoginErrors()
           
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).
 void prepareForSerialization()
          Override PersistentObject to tell each AccountAttributeType to resolve any reference to an AttributeDefinition object.
static void resolveSummaryAttributes(ObjectCache cache, WSAttributes attrs)
          Walk the summary attributes, translating the embedded IDs to names.
 void setDisabled(boolean disabled)
           
 void setIsIdPwdOnly(boolean b)
           
 void setLoginModGrpRefs(java.util.List loginModGrpRefs)
          Sets Login Mod Grps Refs
 void setLoginModGrps(LoginModGroup[] lmgs)
          Sets Login Mod Grps by resolved
 void setObfuscateLoginErrors(boolean obfuscateLoginErrors)
           
 void setSubjectTimeout(java.lang.String t)
           
 void visit(Visitor v)
          Visitor interface.
 
Methods inherited from class com.waveset.object.PersistentObject
addCommonElements, addEndTag, addMemberObjectGroup, addMemberObjectGroup, addPersistentAttributes, addStartTag, addSummaryAttributes, addXmlHeader, attributesMatch, attributesMatch, attributesMatch, checkReference, checkReferences, clearId, cloneAs, cloneObject, 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, getEncryptedValues, getId, getIdOrName, getInitialInstances, getLastMod, getLastModDate, getLastModifier, getLastModItemId, getLockInfo, getMemberObjectGroupRefs, getMemberObjectGroupRefsUpTo, getMemberObjectGroups, getName, getNameOrId, getProperties, getProperty, getPropertyAsString, getPropertyList, getQueryableAttributes, getReference, getReferences, getRuleDrivenMemberObjectGroupRefs, getRuleDrivenMemberObjectGroupRefsUpTo, getRuleDrivenMemberObjectGroups, getSubtype, getSummaryString, hasEncryptedData, hashCode, identityEquals, isAlias, isHidden, isId, isProtected, isProtectedFromDelete, isReferencedIn, listOperationalAttributes, listQueryableAttributes, listQueryableReferenceAttributes, objectGroupMember, objectGroupMemberRef, parseCommonElement, parseCommonElements, parsePersistentAttributes, parseXml, parseXml, prepareToSerialize, println, reEncrypt, reEncryptSubclassAttributes, removeMemberObjectGroup, removeProperty, resolve, resolve, resolve, resolveArray, resolveArrayByFetching, resolveObjectReference, resolveObjectReferences, resolveReference, 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

ATT_DISPLAYNAME

public static final java.lang.String ATT_DISPLAYNAME
XML markup.

See Also:
Constant Field Values

EL_LOGINMODGRPS

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

ATT_OBFUSCATE

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

ATT_DISABLED

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

ATT_TIMEOUT

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

ATT_IDPWDONLY

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

LoginApp

public LoginApp()
Construct a new empty LoginApp.


LoginApp

public LoginApp(org.w3c.dom.Element e)
         throws WavesetException
Deserialize an LoginApp object from XML.

Normally, this will only be called by PersistentObject.create().

Method Detail

getType

public Type getType()
Return the Type object associated with this class, which will always be Type.LOGIN_APP.

Specified by:
getType in class PersistentObject

getLoginModGrps

public LoginModGroup[] getLoginModGrps()
                                throws WavesetException
Return resolved list of Login Mod Grp Objects

Throws:
WavesetException

getLoginModGrp

public ObjectRef getLoginModGrp(GenericObject args)
                         throws WavesetException
Return 1 LoginModGroup after evaulating any LoginModGroup constraints.

Throws:
WavesetException

getLoginModGrpRefs

public java.util.List getLoginModGrpRefs()
Return list of Login Mod Grp Refs


setLoginModGrps

public void setLoginModGrps(LoginModGroup[] lmgs)
                     throws WavesetException
Sets Login Mod Grps by resolved

Throws:
WavesetException

setLoginModGrpRefs

public void setLoginModGrpRefs(java.util.List loginModGrpRefs)
Sets Login Mod Grps Refs


getLoginModGrp

public LoginModGroup getLoginModGrp(int ldIndex)
                             throws WavesetException
Return login mod grp by index

Throws:
WavesetException

isIdPwdOnly

public boolean isIdPwdOnly()

setIsIdPwdOnly

public void setIsIdPwdOnly(boolean b)

isLoginInterface

public boolean isLoginInterface()

getSubjectTimeout

public java.lang.String getSubjectTimeout()

getFormattedSubjectTimeout

public java.util.List getFormattedSubjectTimeout()
return subjectTimeout in an array with hours, mins, days (in that order)


setSubjectTimeout

public void setSubjectTimeout(java.lang.String t)

obfuscateLoginErrors

public boolean obfuscateLoginErrors()

setObfuscateLoginErrors

public void setObfuscateLoginErrors(boolean obfuscateLoginErrors)

isDisabled

public boolean isDisabled()

setDisabled

public void setDisabled(boolean disabled)

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 b)
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 b)
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)

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)

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 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.listSummaryAttribute() to ensure that the subclass includes summary attribute common to all PersistentObjects.

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

getSummaryAttributes

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

Any subclass of PersistentObject that overrides this method should first invoke super.getSummaryAttributes() to ensure that the subclass includes summary attributes that are common to 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(Attribute)}.

A subclass should not need to override this method (except to limit the number of values for a summary attribute).


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.


resolveSummaryAttributes

public static void resolveSummaryAttributes(ObjectCache cache,
                                            WSAttributes attrs)
                                     throws WavesetException
Description copied from class: PersistentObject
Walk the summary attributes, translating the embedded IDs to names. For this object, they are just name and ID which do not need translating.

Throws:
WavesetException

visit

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

Overrides:
visit in class PersistentObject
Throws:
WavesetException