|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.ui.FormUtil
This class provides a collection of utility methods that are intended to be called from XPRESS expressions with Form objects. They can be used to populate lists of allowed values, validate input, etc.
Nested Class Summary | |
static class |
FormUtil.StringComparator
Internal class that implenents the Comparator interface for sorting the object names. |
Field Summary | |
static java.lang.String |
code_id
|
Constructor Summary | |
FormUtil()
|
Method Summary | |
static java.lang.String |
buildDn(java.lang.String name,
java.lang.String baseContext)
Takes a names and the baseContext to append to the name. |
static java.util.List |
buildDns(java.util.List names,
java.lang.String baseContext)
Takes a list of names and the baseContext to append to each token in the list. |
static java.util.List |
buildDns(java.lang.String names,
java.lang.String delimeter,
java.lang.String baseContext)
Takes a string, the delimeter with which to parse the string, and the baseContext to append to each token in the string. |
static java.lang.Object |
callResourceMethod(LighthouseContext context,
java.lang.String resourceName,
java.lang.String methodName,
java.util.Map args)
This method will invoke the specified method on the specified resource, passing the given Map of arguments into the method, if the current subject has view access to the specified resource. |
static java.lang.Object |
checkStringQualityPolicy(LighthouseContext s,
java.lang.String policy,
java.lang.Object value,
java.util.Map map,
java.util.List pwdhistory,
java.lang.String owner)
Check string value against string policy Return true if string passes policy tests or error msg(s) if fails Add option returnNull=true to map and a success will return null. |
static void |
clearResourceObjectListCache(LighthouseContext session,
java.lang.String objectType,
java.util.List resourceList)
Variant that takes a list of resourceids and an existing session |
static void |
clearResourceObjectListCache(LighthouseContext session,
java.lang.String objectType,
java.lang.String resourceId)
Variant that takes a single resourceid and an existing session. |
static void |
clearResourceObjectListCache(LighthouseContext session,
java.lang.String objectType,
java.lang.String resourceId,
java.util.Map templateParameters)
Variant that takes a single resourceid (supporting resource templates) and an existing session. |
static void |
clearResourceObjectListCache(java.lang.String subjectString,
java.lang.String objectType,
java.util.List resourceList)
Variant that takes a list of resourceids and a subject string |
static void |
clearResourceObjectListCache(java.lang.String subjectString,
java.lang.String objectType,
java.lang.String resourceId)
Variant that takes a single resourceId and a subject string. |
static void |
clearResourceObjectListCache(java.lang.String subjectString,
java.lang.String objectType,
java.lang.String resourceId,
java.util.Map templateParameters)
Variant that takes a single resourceid (supporting resource templates) and a subject string. |
static java.lang.Boolean |
controlsAtLeastOneOrganization(LighthouseContext s,
java.util.List organizations)
This method will return true if the current authenticated Lighthouse user controls any one of the organizations in the list; otherwise, returns false. |
static java.lang.String |
convertDateToString(java.util.Date date,
java.lang.String simpleDateFormatPattern)
Convert a date into a different date into the requested string format. |
static java.lang.String |
convertDateToString(java.lang.String dateStr,
java.lang.String simpleDateFormatPattern)
Convert the string representation for a date into a different date string format. |
static java.lang.String |
formatDate(java.lang.String src)
Given a string containing the long integer representation of a Date, return a formatted date string. |
static java.lang.String |
formatTransactionText(java.util.Locale locale,
java.util.List attrNames,
java.util.List attrValues)
Used for formatting the transaction text to be signed for signed approvals. |
static java.lang.String |
getAccountAttributeType(LighthouseContext session,
java.lang.String fqAttrName)
Returns the 'type' of an attribute |
static java.util.List |
getAdministrators(LighthouseContext lc)
Return a string array of Administrator names |
static java.util.List |
getAdministrators(Session s,
java.util.List existing)
Deprecated. - replaced by getUsers(LighthouseContext, Map) specifying the "userType" equals "administrator" option and "current" option to specify the list of current users instead of the "existing" param.
<invoke class='com.waveset.ui.FormUtil' name='getUsers'> |
static java.util.List |
getAdministrators(Session s,
java.util.Map options)
Deprecated. - replaced by getUsers(LighthouseContext, Map) specifying the "userType" equals "administrator" option as follows:
<invoke class='com.waveset.ui.FormUtil' name='getUsers'> |
static java.util.List |
getAdminRoles(LighthouseContext s,
java.util.Map options)
Returns a list of capabilities in the authorization scope of the specified lighthouse context. |
static java.util.List |
getApplications(LighthouseContext s)
Deprecated. use getApplications(LighthouseContext s, Map options) instead |
static java.util.List |
getApplications(LighthouseContext s,
java.util.List current)
Deprecated. use getApplications(LighthouseContext s, Map options) instead |
static java.util.List |
getApplications(LighthouseContext s,
java.util.Map options)
Returns a list of applications in the authorization scope of the specified lighthouse context. |
static java.util.List |
getApproverNames(Session s)
Deprecated. - replaced by #getUsers(Session, Map) specifying the "userType" equals "approver" option as follows:
<invoke class='com.waveset.ui.FormUtil' name='getUsers'> |
static java.util.List |
getApproverNames(Session s,
java.util.List existing)
Deprecated. - replaced by getUsers(LighthouseContext, Map) specifying the "userType" equals "approver" option and "current" option to specify the list of current users instead of the "existing" param.
<invoke class='com.waveset.ui.FormUtil' name='getUsers'> |
static java.util.List |
getApprovers(Session s)
Deprecated. - replaced by getUsers(LighthouseContext, Map) specifying the "userType" equals "approver" option as follows:
<invoke class='com.waveset.ui.FormUtil' name='getUsers'> |
static java.util.List |
getApprovers(Session s,
java.util.List existing)
Deprecated. - replaced by getUsers(LighthouseContext, Map) specifying the "userType" equals "approver" option and "current" option to specify the list of current users instead of the "existing" param.
<invoke class='com.waveset.ui.FormUtil' name='getUsers'> |
static java.util.Map |
getAttributesSelectOptionGroupMap(LighthouseContext s)
Builds data structure appropriate for the 'optionsGroupMap' property of a Select component that displays all form and resource attributes. |
static java.util.Map |
getAttributesSelectOptionGroupMap(LighthouseContext s,
java.util.Map additionalEntries,
java.lang.String additionalEntriesMsg)
Builds data structure appropriate for the 'optionsGroupMap' property of a Select component that displays resource attributes. |
static java.util.Map |
getAttributesSelectValueMap(LighthouseContext s)
Builds data structure appropriate for the 'valueMap' property of a Select component that displays all form and resource attributes. |
static java.util.List |
getAuditActions(LighthouseContext s,
java.lang.String objectType)
Get a list of audit actions available to the given content for the objectType. |
static java.util.List |
getAuditActions(LighthouseContext s,
java.lang.String objectType,
boolean includeAll)
|
static java.util.Map |
getAuditFormatterMap(LighthouseContext context)
|
static java.util.List |
getAuditObjectTypes(LighthouseContext s)
Get a list of audit object types available to the given context. |
static java.util.Map |
getAuditPublisherMap(LighthouseContext context)
|
static java.util.List |
getAuditPublisherOptions(java.lang.String className)
|
static java.util.List |
getAuditStatusList(LighthouseContext s)
Get a list of audit status types available to the given context. |
static java.util.List |
getAuditStatusList(LighthouseContext s,
boolean includeAll)
|
static java.util.Map |
getAvailableCharsets()
|
static java.util.List |
getAvailablePDFFonts()
|
static java.util.List |
getCapabilities(LighthouseContext s)
Deprecated. use getCapabilities(LighthouseContext s, Map options) instead |
static java.util.List |
getCapabilities(LighthouseContext s,
java.util.List current)
Deprecated. use getCapabilities(LighthouseContext s, Map options) instead |
static java.util.List |
getCapabilities(LighthouseContext s,
java.util.List current,
java.util.Map options)
Deprecated. use getCapabilities(LighthouseContext s, Map options) instead |
static java.util.List |
getCapabilities(LighthouseContext s,
java.util.Map options)
Returns a list of capabilities in the authorization scope of the specified lighthouse context. |
static java.util.List |
getCapabilities(LighthouseContext s,
java.lang.String matchType,
java.lang.String value)
Deprecated. use getCapabilities(LighthouseContext s, Map options) instead |
static java.lang.String |
getCodeId(java.lang.Class c)
Get the code id from the class. |
static java.lang.String |
getCodeId(java.lang.String c)
Get the code id from the class specified by the string. |
static java.lang.String |
getCodeIdVersion(java.lang.Class clazz)
Get the version of the code id from the class. |
static java.lang.String |
getCodeIdVersion(java.lang.String clazz)
Get the version of the code id from the class. |
static java.util.Locale |
getDisplayLocale(Session session)
Extract the locale from the session. |
static java.lang.String |
getDnComponent(java.lang.String dn,
java.lang.String componentName)
Given a dn's and the component type to return (e.g. |
static java.util.List |
getFormFieldNames(LighthouseContext s,
java.lang.String processName)
Returns a list of attributes from a form. |
static java.util.List |
getInstalledLocales(java.util.List localeIds,
java.util.Locale displayLocale)
This can be used as the valueMap property of a Select component to allow the user to select their locale. |
static java.util.List |
getListOfDnComponents(java.util.List dnlist,
java.lang.String componentName)
Given a list of dn's and the component type to return (e.g. |
static java.util.List |
getListOfDnComponents(java.lang.String dn,
java.lang.String componentName)
Given a dn's and the component type to return (e.g. |
static java.lang.String |
getLocalizedHelpAsString(Session displaySession,
java.lang.Object help)
This allows us to use Messsages for help objects. |
static java.util.List |
getLoginInterfaceDisplayNames(LighthouseContext notUsed)
Return the current list of Lighthouse login interface display names (such as message catalog keys). |
static java.lang.String |
getMemberOrganization(LighthouseContext s)
Get the name of the first member object group for the administrator currently logged into the session. |
static PersistentObject |
getObject(LighthouseContext s,
java.lang.String typeName,
java.lang.String id)
Get an object from the repository, subject to authorization. |
static java.util.List |
getObjectAttributeNames(GenericObject obj)
Returns the (String) List of attribute names for the supplied GenericObject |
static java.util.List |
getObjectDisplayNames(LighthouseContext s,
java.lang.String typeName,
java.util.Map options)
Returns a list of display names of objects of a given type to which the session owner (subject) has access. |
static java.util.List |
getObjectNames(LighthouseContext s,
java.lang.String typeName)
Return a list of the names of objects if a given type to which the session owner has access. |
static java.util.List |
getObjectNames(LighthouseContext s,
java.lang.String typeName,
java.util.List current)
Deprecated. use getObjectNames(LighthouseContext s, String typeName, Map options) instead |
static java.util.List |
getObjectNames(LighthouseContext s,
java.lang.String typeName,
java.util.List current,
java.util.Map options)
Deprecated. use getObjectNames(LighthouseContext s, String typeName, Map options) instead |
static java.util.List |
getObjectNames(LighthouseContext s,
java.lang.String typeName,
java.util.Map options)
Returns a list of names of objects of a given type to which the session owner (subject) has access. |
static java.util.List |
getObjectNames(LighthouseContext s,
java.lang.String typeName,
java.lang.String attrName,
java.lang.String attrValue,
java.util.List current)
Deprecated. use getObjectNames(LighthouseContext s, String typeName, Map options) instead |
static java.util.List |
getObjectNames(LighthouseContext s,
java.lang.String typeName,
java.lang.String attrName,
java.lang.String attrValue,
java.util.List current,
java.util.Map options)
Deprecated. use getObjectNames(LighthouseContext s, String typeName, Map options) instead |
static java.util.List |
getObjectNames(LighthouseContext s,
Type type,
java.lang.String attrName,
java.lang.String attrValue,
java.util.List current)
Deprecated. use getObjectNames(LighthouseContext s, String typeName, Map options) instead |
static java.util.List |
getObjectNames(LighthouseContext s,
Type type,
java.lang.String attrName,
java.lang.String attrValue,
java.util.List current,
java.util.Map options)
Deprecated. use getObjectNames(LighthouseContext s, String typeName, Map options) instead |
static ObjectRef |
getObjectRef(LighthouseContext s,
java.lang.String typeName,
java.lang.String id)
Get an ObjectRef from the repository given the type and name or id, subject to authorization. |
static java.util.List |
getObjectRefList(LighthouseContext s,
java.lang.String typeName,
java.util.List ids)
|
static java.lang.String |
getOrganizationDisplayableNameByUserId(LighthouseContext s,
java.util.List userIds)
Return the displayableName for the common objectGroup which the userIds belong in. |
static java.util.List |
getOrganizations(LighthouseContext s)
Deprecated. Use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead |
static java.util.List |
getOrganizations(LighthouseContext s,
boolean pathPrefixes)
Deprecated. Use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead |
static java.util.List |
getOrganizations(LighthouseContext s,
boolean pathPrefixes,
java.util.List current)
Deprecated. Use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead |
static java.util.List |
getOrganizations(LighthouseContext s,
java.util.List current)
Deprecated. Use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead |
static java.util.List |
getOrganizationsDisplayNames(LighthouseContext s)
Short cut for calling getOrganizationsDisplayNames(LighthouseContext s, Map options) with no options. |
static java.util.List |
getOrganizationsDisplayNames(LighthouseContext s,
boolean pathPrefixes)
Deprecated. Use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead |
static java.util.List |
getOrganizationsDisplayNames(LighthouseContext s,
boolean pathPrefixes,
java.util.List current)
Deprecated. Use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead |
static java.util.List |
getOrganizationsDisplayNames(LighthouseContext s,
java.util.List current)
Deprecated. Use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead |
static java.util.List |
getOrganizationsDisplayNames(LighthouseContext s,
java.util.Map options)
|
static java.util.List |
getOrganizationsDisplayNamesWithPrefixes(LighthouseContext s)
Deprecated. Use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead |
static java.util.List |
getOrganizationsDisplayNamesWithPrefixes(LighthouseContext s,
java.util.List current)
Deprecated. Use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead |
static java.util.List |
getOrganizationsDisplayNamesWithRight(LighthouseContext s,
java.lang.String type,
java.lang.String targetRight)
Calls #getOrganizationsDisplayNamesWithRights(LighthouseContext, String, List, Map) with targetRight wrapped into a list and null options. |
static java.util.List |
getOrganizationsDisplayNamesWithRight(LighthouseContext s,
java.lang.String type,
java.lang.String targetRight,
java.util.Map options)
Calls #getOrganizationsDisplayNamesWithRights(LighthouseContext, String, List, Map) with targetRight wrapped into a list. |
static java.util.List |
getOrganizationsDisplayNamesWithRights(LighthouseContext s,
java.lang.String type,
java.util.List targetRights)
Calls #getOrganizationsDisplayNamesWithRights(LighthouseContext, String, List, Map) with null options. |
static java.util.List |
getOrganizationsDisplayNamesWithRights(LighthouseContext s,
java.lang.String type,
java.util.List targetRights,
java.util.Map options)
|
static java.util.List |
getOrganizationsWithPrefixes(LighthouseContext s)
Deprecated. Use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead |
static java.util.List |
getOrganizationsWithPrefixes(LighthouseContext s,
java.util.List current)
Deprecated. Use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead |
static java.lang.String |
getOrgPath(ObjectGroup group)
|
static java.util.List |
getPolicies(LighthouseContext s)
|
static java.util.List |
getPolicies(LighthouseContext s,
java.util.Map options)
Return a string array of policy names of the specified type. |
static java.util.List |
getPolicies(LighthouseContext s,
java.lang.String currentPolicy)
Special call to get the policies and if the current policy is not on the list, add it to the list. |
static java.util.List |
getPolicies(LighthouseContext s,
java.lang.String type,
java.lang.String currentPolicy)
Return a string array of policy names of the specified type. |
static java.util.List |
getPrivateApplications(LighthouseContext s,
java.lang.String roleName)
This was the original name, keep for backward compatibility. |
static java.util.List |
getPrivateResources(LighthouseContext s,
java.lang.String roleName)
This was the original name, keep it around for backward compatibility. |
static java.lang.String |
getRelativeDateString(int ord,
int day,
int mo,
java.lang.String simpleDateFormatPattern)
Generates a date string expressed in a future time such as "the second Monday in October". |
static java.lang.String |
getRelativeDateString(int field,
int amount,
java.lang.String simpleDateFormatPattern)
Generates a data string expressed as a number of units from now such as "5 minutes from now" |
static java.util.Map |
getRepetitionUnitsMap()
Get a map that contains the TaskSchedule repetition units. |
static java.lang.Object |
getResourceAccountAttributeMapping(LighthouseContext context,
java.lang.String resourceName,
java.lang.String leftHandSideName)
For the resource specified by resourceName, return the value for the resource account attribute in the schema map that corresponds to the IDM attribute with name leftHandSideName. |
static java.lang.Object |
getResourceAccountAttributeType(LighthouseContext context,
java.lang.String resourceName,
java.lang.String leftHandSideName)
For the resource specified by resourceName, return the type of the resource account attribute in the schema map that corresponds to the IDM attribute with name leftHandSideName. |
static java.lang.Object |
getResourceAttributeFromResource(LighthouseContext context,
java.lang.String resourceName,
java.lang.String resourceAttribute)
For the resource specified by resourceName, return the value for the resource attribute specified by resourceAttribute. |
static java.util.List |
getResourceAttributes(LighthouseContext s,
java.lang.String resource)
Return a list of the attributes in the schema map for a particular resource. |
static java.lang.String |
getResourceIdentity(Session session,
java.lang.String resourceId)
|
static java.lang.String |
getResourceIdentity(java.lang.String subjectString,
java.lang.String resourceId)
|
static GenericObject |
getResourceObject(LighthouseContext session,
java.lang.String resourceId,
java.lang.String objectType,
java.lang.String objectId,
java.util.Map options)
Returns the requested objectId of the requested objectType from the resource |
static GenericObject |
getResourceObject(java.lang.String subjectString,
java.lang.String resourceId,
java.lang.String objectType,
java.lang.String objectId,
java.util.Map options)
Returns the requested objectId of the requested objectType from the resource |
static java.util.List |
getResourceObjects(LighthouseContext session,
java.lang.String objectType,
java.lang.String resourceId,
java.util.Map options)
|
static java.util.List |
getResourceObjects(LighthouseContext session,
java.lang.String objectType,
java.lang.String resourceId,
java.util.Map options,
java.lang.String cacheList,
java.lang.String cacheTimeout,
java.lang.String clearCacheIfExists)
Same function as getResourceObjects above, plus the ability to cache and manage the cache of the returned objects cachList - "true" to have the returned list of objects cached by the server; otherwise "false" cacheTimeout - if cacheList is true, this can set the number of milliseconds before the cache times out. |
static java.util.List |
getResourceObjects(java.lang.String subjectString,
java.lang.String objectType,
java.lang.String resourceId,
java.util.Map options)
|
static java.util.List |
getResourceObjects(java.lang.String subjectString,
java.lang.String objectType,
java.lang.String resourceId,
java.util.Map options,
java.lang.String cacheList,
java.lang.String cacheTimeout,
java.lang.String clearCacheIfExists)
Same function as getResourceObjects above, plus the ability to cache and manage the cache of the returned objects cachList - "true" to have the returned list of objects cached by the server; otherwise "false" cacheTimeout - if cacheList is true, this can set the number of milliseconds before the cache times out. |
static java.util.List |
getResourceObjectTypeAttributeNames(LighthouseContext context,
java.lang.String resourceName,
java.lang.String objectType)
|
static java.util.List |
getResources(LighthouseContext s)
|
static java.util.List |
getResources(LighthouseContext s,
java.util.List current)
|
static java.util.List |
getResources(LighthouseContext s,
java.util.Map options)
Returns a list of resources in the authorization scope of the specified lighthouse context. |
static java.util.List |
getResources(LighthouseContext s,
java.lang.String matchType,
java.lang.String value)
Build a list of the names of resources that match a particular type (like LDAP). |
static java.util.List |
getResources(LighthouseContext s,
java.lang.String matchType,
java.lang.String value,
java.util.List current)
|
static java.util.List |
getResourceSchemaAttributeNames(LighthouseContext context,
java.lang.String nameOrId)
|
static java.util.List |
getResourceSchemaResourceAttributeNames(LighthouseContext context,
java.lang.String nameOrId)
|
static java.util.List |
getResourcesSupportingContainerObjectTypes(LighthouseContext s)
|
static java.util.List |
getResourcesSupportingContainerObjectTypes(LighthouseContext s,
java.util.Map options)
|
static java.util.List |
getResourcesSupportingObjectTypes(LighthouseContext s,
java.util.List objectTypes)
|
static java.util.List |
getResourcesSupportingObjectTypes(LighthouseContext s,
java.util.List objectTypes,
java.util.List current)
|
static java.util.List |
getResourcesSupportingObjectTypes(LighthouseContext s,
java.util.List objectTypes,
java.util.List current,
java.util.Map options)
|
static java.util.List |
getResourcesSupportingObjectTypes(LighthouseContext s,
java.util.List objectTypes,
java.util.Map options)
|
static java.util.List |
getRoles(LighthouseContext s)
|
static java.util.List |
getRoles(LighthouseContext s,
java.util.List current)
This variant allows a list of names to be included in the returned list. |
static java.util.List |
getRoles(LighthouseContext s,
java.util.Map options)
Returns a list of roles in the authorization scope of the specified lighthouse context. |
static java.util.List |
getRoles(LighthouseContext s,
java.lang.String current)
This variant allows a specific name to be included in the returned list. |
static java.lang.String |
getServletContextPath(RequestState request)
|
static Session |
getSessionForActiveSyncResource(java.lang.String name)
|
static java.util.List |
getSimilarApproverNames(Session s)
Deprecated. - replaced by getUsers(LighthouseContext, Map) specifying the "userType" equals "administrator" option and "similarTo" option with a value of the current user's name
<invoke class='com.waveset.ui.FormUtil' name='getUsers'> |
static java.util.List |
getSimilarApproverNames(Session s,
java.lang.String admin)
Deprecated. - replaced by getUsers(LighthouseContext, Map) specifying the "userType" equals "administrator" option and "similarTo" option with a value of the current user's name
<invoke class='com.waveset.ui.FormUtil' name='getUsers'> |
static java.util.List |
getSimilarApprovers(Session s)
Deprecated. - replaced by getUsers(LighthouseContext, Map) specifying the "userType" equals "administrator" option and "similarTo" option with a value of the current user's name
<invoke class='com.waveset.ui.FormUtil' name='getUsers'> |
static java.util.List |
getSimilarApprovers(Session s,
java.lang.String admin)
Deprecated. - replaced by getUsers(LighthouseContext, Map) specifying the "userType" equals "administrator" option and "similarTo" option with a value of the current user's name
<invoke class='com.waveset.ui.FormUtil' name='getUsers'> |
static java.util.Map |
getStartupTypesMap()
Get a map that contains the ActiveSync startup types. |
static java.util.List |
getSubordinates(LighthouseContext s,
java.lang.String manager,
java.util.Map options)
Get the managerial subordinates of a user. |
static java.util.List |
getTimeZoneIdToDisplayNameMap(java.util.Locale locale)
This was too complex to manage with express. |
static java.lang.String |
getTypeDisplayName(LighthouseContext s,
java.lang.String typeName)
Get the display name of a Type, given it name. |
static java.util.Map |
getTypeDisplayNamesWithRights(LighthouseContext s)
Returns the set of types with rights that are not deprecated and have a valid java class. |
static java.util.List |
getTypeNamesWithEncryptedData()
List object types that support having encrypted data within |
static java.util.List |
getTypeObjectsAvailableToOrg(LighthouseContext s,
java.lang.String typestr,
java.lang.String orgid)
Returns a list, for use as allowedValues of a multi-select, of all member objects of the specified org Id and typestr |
static java.util.List |
getTypesWithRights(LighthouseContext s)
|
static java.util.List |
getUnassignedAdminRoles(LighthouseContext s,
java.util.List current)
Build a list of adminrole names suitable for the assigned adminroles of an administrator. |
static java.util.List |
getUnassignedAdminRoles(LighthouseContext s,
java.util.List current,
java.util.Map options)
Build a list of capability names suitable for the assigned adminroles of an administrator. |
static java.util.List |
getUnassignedApplications(LighthouseContext s,
java.util.List roleNames,
java.util.List current)
|
static java.util.List |
getUnassignedApplications(LighthouseContext s,
java.util.List roleNames,
java.util.Map options)
|
static java.util.List |
getUnassignedApplications(LighthouseContext s,
java.util.Map options)
Build a list of application names suitable for the "private applications" of a user. |
static java.util.List |
getUnassignedApplications(LighthouseContext s,
java.lang.String roleName)
|
static java.util.List |
getUnassignedApplications(LighthouseContext s,
java.lang.String roleName,
java.util.List current)
Build a list of names suitable for the "private applications" of a user. |
static java.util.List |
getUnassignedCapabilities(LighthouseContext s)
|
static java.util.List |
getUnassignedCapabilities(LighthouseContext s,
java.util.List current)
Build a list of capability names suitable for the assigned capabilities of an administrator. |
static java.util.List |
getUnassignedCapabilities(LighthouseContext s,
java.util.List current,
java.util.Map options)
Build a list of capability names suitable for the assigned capabilities of an administrator. |
static java.util.List |
getUnassignedCapabilities(LighthouseContext s,
java.util.List current,
java.lang.String currentName)
Build a list of capability names suitable for the assigned capabilities of an administrator. |
static java.util.List |
getUnassignedOrganizations(LighthouseContext s)
Deprecated. - use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead. |
static java.util.List |
getUnassignedOrganizations(LighthouseContext s,
java.util.List current)
Deprecated. - use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead. |
static java.util.List |
getUnassignedOrganizationsDisplayNames(LighthouseContext s)
Deprecated. - use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead. |
static java.util.List |
getUnassignedOrganizationsDisplayNames(LighthouseContext s,
java.util.List current)
Deprecated. - use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead. |
static java.util.List |
getUnassignedOrganizationsDisplayNames(LighthouseContext s,
java.util.Map options)
Deprecated. Use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead. |
static java.util.List |
getUnassignedOrganizationsDisplayNamesWithPrefixes(LighthouseContext s)
Deprecated. - use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead. |
static java.util.List |
getUnassignedOrganizationsDisplayNamesWithPrefixes(LighthouseContext s,
java.util.List current)
Deprecated. - use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead. |
static java.util.List |
getUnassignedOrganizationsWithPrefixes(LighthouseContext s)
Deprecated. - use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead. |
static java.util.List |
getUnassignedOrganizationsWithPrefixes(LighthouseContext s,
java.util.List current)
Deprecated. - use getOrganizationsDisplayNames(LighthouseContext s, Map options) instead. |
static java.util.List |
getUnassignedResources(LighthouseContext s,
java.util.List roleNames,
java.util.List current)
Deprecated. use getUnassignedResources(LighthouseContext s, Map options) instead |
static java.util.List |
getUnassignedResources(LighthouseContext s,
java.util.Map options)
Build a list of resource names suitable for the "private resources" of a user. |
static java.util.List |
getUnassignedResources(LighthouseContext s,
java.lang.String roleName)
Deprecated. use getUnassignedResources(LighthouseContext s, Map options) instead |
static java.util.List |
getUnassignedResources(LighthouseContext s,
java.lang.String roleName,
java.util.List current)
Deprecated. use getUnassignedResources(LighthouseContext s, Map options) instead |
static java.util.List |
getUsers(LighthouseContext s)
Returns a list of users in the authorization scope of the specified lighthouse context. |
static java.util.List |
getUsers(LighthouseContext s,
java.util.Map options)
Returns a list of users in the authorization scope of the specified lighthouse context. |
static java.lang.String |
getVersionFromCodeId(java.lang.String codeid)
Get the version number from the CVS code id. |
static java.lang.Boolean |
hasAllPermissions(LighthouseContext s,
java.lang.String type,
java.util.List rights)
Returns true if the current authenticated Lighthouse user has all of the specified permission; otherwise, returns false. |
static java.lang.Boolean |
hasAllPermissionsSubType(LighthouseContext s,
java.lang.String type,
java.util.List rights)
Returns true if the current authenticated Lighthouse user has all the specified rights to the specified type (or any of its authtype subtypes). |
static java.lang.Boolean |
hasAnyPermission(LighthouseContext s,
java.lang.String type,
java.util.List rights)
Returns true if the current authenticated Lighthouse user has any of the specified permission; otherwise, returns false. |
static java.lang.Boolean |
hasAnyPermissionSubType(LighthouseContext s,
java.lang.String type,
java.util.List rights)
Returns true if the current authenticated Lighthouse user has any of the specified rights to the specified type (or any of its authtype subtypes). |
static java.lang.Boolean |
hasCapabilities(LighthouseContext s,
java.util.List capabilities)
Returns true if the current authenticated Lighthouse user has the all of the specified capabilities; otherwise, returns false. |
static java.lang.Boolean |
hasCapability(LighthouseContext s,
java.lang.String capability)
Returns true if the current authenticated Lighthouse user has the specified capability; otherwise, returns false. |
static java.lang.Boolean |
hasPermission(LighthouseContext s,
java.lang.String type,
java.util.List rights)
Deprecated. use hasAllPermissions() instead |
static java.lang.Boolean |
hasPermissionToAnyAuthTypeSubType(LighthouseContext s,
java.lang.String type,
java.util.List rights)
Returns true if the current authenticated Lighthouse user has the specified rights to the specified type or any of its authtype subtypes. |
static boolean |
isAccountAttributeMultiValued(LighthouseContext session,
java.lang.String fqAttrName)
Determines multivalue property of an attribute |
static boolean |
isFeatureSupported(LighthouseContext ctx,
java.lang.String resourceName,
java.lang.String featureName)
Determine whether the given resource supports and has the given feature enabled. |
static java.util.List |
listResourceObjects(LighthouseContext session,
java.lang.String objectType,
java.util.List resourceList,
java.util.Map options,
java.lang.String cacheList)
This method returns a list of resource object names of the specified resource object type from the specified list of resources (resourceList of Ids or names). |
static java.util.List |
listResourceObjects(LighthouseContext session,
java.lang.String objectType,
java.util.List resourceList,
java.util.Map options,
java.lang.String cacheList,
java.lang.String clearCacheIfExists)
|
static java.util.List |
listResourceObjects(LighthouseContext session,
java.lang.String objectType,
java.lang.String resourceId,
java.util.Map options,
java.lang.String cacheList)
Variant that takes a single resourceid and an existing session. |
static java.util.List |
listResourceObjects(LighthouseContext session,
java.lang.String objectType,
java.lang.String resourceId,
java.util.Map options,
java.lang.String cacheList,
java.lang.String clearCacheIfExists)
Variant that takes a single resourceid and an existing session. |
static java.util.List |
listResourceObjects(LighthouseContext session,
java.lang.String objectType,
java.lang.String resourceId,
java.util.Map options,
java.lang.String cacheList,
java.lang.String cacheTimeout,
java.lang.String clearCacheIfExists)
Variant that takes a single resourceid and an existing session; Supports cacheTimeout (e.g. |
static java.util.List |
listResourceObjects(java.lang.String subjectString,
java.lang.String objectType,
java.util.List resourceList,
java.util.Map options,
java.lang.String cacheList)
Variant that takes a Subject string and creates a new Session. |
static java.util.List |
listResourceObjects(java.lang.String subjectString,
java.lang.String objectType,
java.util.List resourceList,
java.util.Map options,
java.lang.String cacheList,
java.lang.String clearCacheIfExists)
Variant that takes a Subject string and creates a new Session. |
static java.util.List |
listResourceObjects(java.lang.String subjectString,
java.lang.String objectType,
java.lang.String resourceId,
java.util.Map options,
java.lang.String cacheList)
Variant that takes a single resourceId and a subject string. |
static java.util.List |
listResourceObjects(java.lang.String subjectString,
java.lang.String objectType,
java.lang.String resourceId,
java.util.Map options,
java.lang.String cacheList,
java.lang.String clearCacheIfExists)
Variant that takes a single resourceId and a subject string. |
static java.util.List |
listResourceObjects(java.lang.String subjectString,
java.lang.String objectType,
java.lang.String resourceId,
java.util.Map options,
java.lang.String cacheList,
java.lang.String cacheTimeout,
java.lang.String clearCacheIfExists)
Variant that takes a single resourceId and a subject string; Supports cacheTimeout (e.g. |
static java.util.List |
listServers(LighthouseContext s)
|
static java.util.List |
sort(java.util.List l)
Sort a List by its natural ordering and return it. |
static java.lang.String |
stripOrgPath(java.lang.String path)
Given an organization name in "path" form, remove the path prefix. |
static java.lang.String |
testObject(LighthouseContext s,
java.lang.String typeName,
java.lang.String id)
Created for the Dell demo, where end users need to be able to launch processes to create new users, and need to test to see if a user with a certain name already exists. |
static java.lang.String |
testUser(LighthouseContext s,
java.lang.String id)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public FormUtil()
Method Detail |
public static PersistentObject getObject(LighthouseContext s, java.lang.String typeName, java.lang.String id) throws WavesetException
WavesetException
public static ObjectRef getObjectRef(LighthouseContext s, java.lang.String typeName, java.lang.String id) throws WavesetException
WavesetException
public static java.util.List getObjectRefList(LighthouseContext s, java.lang.String typeName, java.util.List ids) throws WavesetException
WavesetException
public static java.lang.String getMemberOrganization(LighthouseContext s) throws WavesetException
This assumes the administrator controls the group of which they are a member, otherwise they won't be able to read themselves. Would be nicer to have an Administrator view that can be used to return information about the current admin.
WavesetException
public static java.util.List sort(java.util.List l)
l
- The List to sort.
public static java.util.List getObjectNames(LighthouseContext s, java.lang.String typeName) throws WavesetException
WavesetException
public static java.util.List getObjectNames(LighthouseContext s, java.lang.String typeName, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getObjectNames(LighthouseContext s, java.lang.String typeName, java.util.List current, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getObjectNames(LighthouseContext s, java.lang.String typeName, java.lang.String attrName, java.lang.String attrValue, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getObjectNames(LighthouseContext s, java.lang.String typeName, java.lang.String attrName, java.lang.String attrValue, java.util.List current, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getObjectNames(LighthouseContext s, Type type, java.lang.String attrName, java.lang.String attrValue, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getObjectNames(LighthouseContext s, Type type, java.lang.String attrName, java.lang.String attrValue, java.util.List current, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getObjectNames(LighthouseContext s, java.lang.String typeName, java.util.Map options) throws WavesetException
public static java.util.List getObjectDisplayNames(LighthouseContext s, java.lang.String typeName, java.util.Map options) throws WavesetException
In addition, a map of options can be specified to further filter the list of names returned. Supported options include: - "scopingOrg" - this options value should be the name of an organization indicating that the returned list should contain only names of the requested type that are "available to" organizations controlled by an AdminRole that controls the organization matching the value of this query option and is assigned to the current logged in user. a common case for this is when a user is assigned more than one AdminRole and you want to ensure that when creating or editing a user, the member organization of the user being created or edited determines what object names of the requested type are available for assignment. - "current" - a list of one or more currently selected applications - "conditions" - which can be specified in the following ways: *
public static java.util.List getPolicies(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getPolicies(LighthouseContext s, java.lang.String currentPolicy) throws WavesetException
This is for the case of a resource administrator who does not have access to the policy referred to by the current resource.
jsl - this feels like it needs to be generalized
WavesetException
public static java.util.List getPolicies(LighthouseContext s, java.lang.String type, java.lang.String currentPolicy) throws WavesetException
WavesetException
public static java.util.List getPolicies(LighthouseContext s, java.util.Map options) throws WavesetException
public static java.lang.Object checkStringQualityPolicy(LighthouseContext s, java.lang.String policy, java.lang.Object value, java.util.Map map, java.util.List pwdhistory, java.lang.String owner) throws WavesetException
s
- - a LighthouseContextpolicy
- - policy name (required)value
- - string value to check (required)map
- - map of 'must not contain' data (optional) and/or use returnNull=true to return NULL when pwd passes policy checkpwdhistory
- - list of user's password history (optional)owner
- - user whose string value is being checked (required)
WavesetException
public static java.util.List getUsers(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getUsers(LighthouseContext s, java.util.Map options) throws WavesetException
public static java.util.List getAdministrators(LighthouseContext lc) throws WavesetException
WavesetException
public static java.util.List getAdministrators(Session s, java.util.Map options) throws WavesetException
getUsers(LighthouseContext, Map)
<invoke class='com.waveset.ui.FormUtil' name='getUsers'>
<ref>:display.session</ref>
<map>
<s>conditions</s>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>userType</s>
<s>equals</s>
<s>administrator</s>
</new>
</list>
</map>
</invoke>
WavesetException
public static java.util.List getAdministrators(Session s, java.util.List existing) throws WavesetException
getUsers(LighthouseContext, Map)
<invoke class='com.waveset.ui.FormUtil' name='getUsers'>
<ref>:display.session</ref>
<map>
<s>conditions</s>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>userType</s>
<s>equals</s>
<s>administrator</s>
</new>
</list>
<s>current</s>
<ref>existing</ref>
</map>
</invoke>
existing
- - an existing list of admins to ensure there are no
duplicates.
WavesetException
public static java.util.List getApprovers(Session s) throws WavesetException
getUsers(LighthouseContext, Map)
<invoke class='com.waveset.ui.FormUtil' name='getUsers'>
<ref>:display.session</ref>
<map>
<s>conditions</s>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>userType</s>
<s>equals</s>
<s>approver</s>
</new>
</list>
</map>
</invoke>
WavesetException
public static java.util.List getApprovers(Session s, java.util.List existing) throws WavesetException
getUsers(LighthouseContext, Map)
<invoke class='com.waveset.ui.FormUtil' name='getUsers'>
<ref>:display.session</ref>
<map>
<s>conditions</s>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>userType</s>
<s>equals</s>
<s>approver</s>
</new>
</list>
<s>current</s>
<ref>existing</ref>
</map>
</invoke>
existing
- - an existing list of admins to ensure there are no
duplicates.
WavesetException
public static java.util.List getSimilarApprovers(Session s) throws WavesetException
getUsers(LighthouseContext, Map)
<invoke class='com.waveset.ui.FormUtil' name='getUsers'>
<ref>:display.session</ref>
<map>
<s>conditions</s>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>userType</s>
<s>equals</s>
<s>administrator</s>
</new>
<new class='com.waveset.object.AttributeCondition'>
<s>similarTo</s>
<s>equals</s>
<invoke name='getUser'>
<ref>:display.session</ref>
</invoke>
</new>
</list>
</map>
</invoke>
WavesetException
public static java.util.List getSimilarApprovers(Session s, java.lang.String admin) throws WavesetException
getUsers(LighthouseContext, Map)
<invoke class='com.waveset.ui.FormUtil' name='getUsers'>
<ref>:display.session</ref>
<map>
<s>conditions</s>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>userType</s>
<s>equals</s>
<s>administrator</s>
</new>
<new class='com.waveset.object.AttributeCondition'>
<s>similarTo</s>
<s>equals</s>
<ref>admin</ref>
</new>
</list>
</map>
</invoke>
WavesetException
public static java.util.List getApproverNames(Session s) throws WavesetException
#getUsers(Session, Map)
<invoke class='com.waveset.ui.FormUtil' name='getUsers'>
<ref>:display.session</ref>
<map>
<s>conditions</s>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>userType</s>
<s>equals</s>
<s>approver</s>
</new>
</list>
</map>
</invoke>
WavesetException
public static java.util.List getApproverNames(Session s, java.util.List existing) throws WavesetException
getUsers(LighthouseContext, Map)
<invoke class='com.waveset.ui.FormUtil' name='getUsers'>
<ref>:display.session</ref>
<map>
<s>conditions</s>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>userType</s>
<s>equals</s>
<s>approver</s>
</new>
</list>
<s>current</s>
<ref>existing</ref>
</map>
</invoke>
WavesetException
public static java.util.List getSimilarApproverNames(Session s) throws WavesetException
getUsers(LighthouseContext, Map)
<invoke class='com.waveset.ui.FormUtil' name='getUsers'>
<ref>:display.session</ref>
<map>
<s>conditions</s>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>userType</s>
<s>equals</s>
<s>administrator</s>
</new>
<new class='com.waveset.object.AttributeCondition'>
<s>similarTo</s>
<s>equals</s>
<invoke name='getUser'>
<ref>:display.session</ref>
</invoke>
</new>
</list>
</map>
</invoke>
WavesetException
public static java.util.List getSimilarApproverNames(Session s, java.lang.String admin) throws WavesetException
getUsers(LighthouseContext, Map)
<invoke class='com.waveset.ui.FormUtil' name='getUsers'>
<ref>:display.session</ref>
<map>
<s>conditions</s>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>userType</s>
<s>equals</s>
<s>administrator</s>
</new>
<new class='com.waveset.object.AttributeCondition'>
<s>similarTo</s>
<s>equals</s>
<ref>admin</ref>
</new>
</list>
</map>
</invoke>
WavesetException
public static java.util.List getRoles(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getRoles(LighthouseContext s, java.lang.String current) throws WavesetException
WavesetException
public static java.util.List getRoles(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getRoles(LighthouseContext s, java.util.Map options) throws WavesetException
public static java.util.List getApplications(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getApplications(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getApplications(LighthouseContext s, java.util.Map options) throws WavesetException
public static java.util.List getUnassignedApplications(LighthouseContext s, java.lang.String roleName, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getUnassignedApplications(LighthouseContext s, java.lang.String roleName) throws WavesetException
WavesetException
public static java.util.List getUnassignedApplications(LighthouseContext s, java.util.List roleNames, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getUnassignedApplications(LighthouseContext s, java.util.List roleNames, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getUnassignedApplications(LighthouseContext s, java.util.Map options) throws WavesetException
public static java.util.List getPrivateApplications(LighthouseContext s, java.lang.String roleName) throws WavesetException
WavesetException
public static java.util.List getResources(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getResources(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getResources(LighthouseContext s, java.lang.String matchType, java.lang.String value) throws WavesetException
WavesetException
public static java.util.List getResources(LighthouseContext s, java.lang.String matchType, java.lang.String value, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getResources(LighthouseContext s, java.util.Map options) throws WavesetException
public static java.util.List getResourcesSupportingContainerObjectTypes(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getResourcesSupportingContainerObjectTypes(LighthouseContext s, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getResourcesSupportingObjectTypes(LighthouseContext s, java.util.List objectTypes) throws WavesetException
WavesetException
public static java.util.List getResourcesSupportingObjectTypes(LighthouseContext s, java.util.List objectTypes, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getResourcesSupportingObjectTypes(LighthouseContext s, java.util.List objectTypes, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getResourcesSupportingObjectTypes(LighthouseContext s, java.util.List objectTypes, java.util.List current, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getUnassignedResources(LighthouseContext s, java.lang.String roleName, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getUnassignedResources(LighthouseContext s, java.util.List roleNames, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getUnassignedResources(LighthouseContext s, java.lang.String roleName) throws WavesetException
WavesetException
public static java.util.List getUnassignedResources(LighthouseContext s, java.util.Map options) throws WavesetException
public static java.util.List getPrivateResources(LighthouseContext s, java.lang.String roleName) throws WavesetException
WavesetException
public static java.util.List getOrganizations(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getOrganizationsWithPrefixes(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getOrganizations(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getOrganizationsWithPrefixes(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getOrganizations(LighthouseContext s, boolean pathPrefixes, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getOrganizations(LighthouseContext s, boolean pathPrefixes) throws WavesetException
WavesetException
public static java.util.List getOrganizationsDisplayNames(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getOrganizationsDisplayNamesWithPrefixes(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getOrganizationsDisplayNames(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getOrganizationsDisplayNamesWithPrefixes(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getOrganizationsDisplayNames(LighthouseContext s, boolean pathPrefixes, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getOrganizationsDisplayNames(LighthouseContext s, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getOrganizationsDisplayNames(LighthouseContext s, boolean pathPrefixes) throws WavesetException
WavesetException
public static java.lang.String getOrganizationDisplayableNameByUserId(LighthouseContext s, java.util.List userIds) throws WavesetException
s
- userIds
-
WavesetException
public static java.util.List getOrganizationsDisplayNamesWithRight(LighthouseContext s, java.lang.String type, java.lang.String targetRight) throws WavesetException
s
- type
- targetRight
-
WavesetException
public static java.util.List getOrganizationsDisplayNamesWithRight(LighthouseContext s, java.lang.String type, java.lang.String targetRight, java.util.Map options) throws WavesetException
s
- type
- targetRight
- options
-
WavesetException
public static java.util.List getOrganizationsDisplayNamesWithRights(LighthouseContext s, java.lang.String type, java.util.List targetRights) throws WavesetException
s
- type
- targetRights
-
WavesetException
public static java.util.List getOrganizationsDisplayNamesWithRights(LighthouseContext s, java.lang.String type, java.util.List targetRights, java.util.Map options) throws WavesetException
s
- Context used to retrieve the organization names.type
- The object type on which the targetRights are desired.targetRights
- The rights on the object type that are desired.options
- Contains options to control what is returned. These
options are passed into the underlying listObjects() call. In addition
to options valid for listObjects(), the following options are also
available:
WavesetException
public static java.lang.String getOrgPath(ObjectGroup group) throws WavesetException
WavesetException
public static java.lang.String stripOrgPath(java.lang.String path)
public static java.util.List getUnassignedOrganizations(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getUnassignedOrganizations(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getUnassignedOrganizationsWithPrefixes(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getUnassignedOrganizationsWithPrefixes(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getUnassignedOrganizationsDisplayNames(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getUnassignedOrganizationsDisplayNames(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getUnassignedOrganizationsDisplayNamesWithPrefixes(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getUnassignedOrganizationsDisplayNamesWithPrefixes(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getUnassignedOrganizationsDisplayNames(LighthouseContext s, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getUnassignedCapabilities(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getSubordinates(LighthouseContext s, java.lang.String manager, java.util.Map options) throws WavesetException
s
- the LighthouseContextmanager
- the manager whose subordinates are being requestedoptions
- WavesetException
public static java.util.List getAdminRoles(LighthouseContext s, java.util.Map options) throws WavesetException
public static java.util.List getUnassignedAdminRoles(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getUnassignedAdminRoles(LighthouseContext s, java.util.List current, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getCapabilities(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getCapabilities(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getCapabilities(LighthouseContext s, java.util.List current, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getCapabilities(LighthouseContext s, java.lang.String matchType, java.lang.String value) throws WavesetException
WavesetException
public static java.util.List getCapabilities(LighthouseContext s, java.util.Map options) throws WavesetException
public static java.util.List getUnassignedCapabilities(LighthouseContext s, java.util.List current) throws WavesetException
WavesetException
public static java.util.List getUnassignedCapabilities(LighthouseContext s, java.util.List current, java.lang.String currentName) throws WavesetException
WavesetException
public static java.util.List getUnassignedCapabilities(LighthouseContext s, java.util.List current, java.util.Map options) throws WavesetException
WavesetException
public static java.util.List getLoginInterfaceDisplayNames(LighthouseContext notUsed) throws WavesetException
notUsed
- Context - not actually used, left for backward compatibility - can be null.
WavesetException
public static java.lang.Boolean hasPermission(LighthouseContext s, java.lang.String type, java.util.List rights) throws WavesetException
WavesetException
public static java.lang.Boolean hasAllPermissions(LighthouseContext s, java.lang.String type, java.util.List rights) throws WavesetException
WavesetException
public static java.lang.Boolean hasAnyPermission(LighthouseContext s, java.lang.String type, java.util.List rights) throws WavesetException
WavesetException
public static java.lang.Boolean hasAllPermissionsSubType(LighthouseContext s, java.lang.String type, java.util.List rights) throws WavesetException
Therefore, this method is primarily used to determine if the subject has the specified rights to at least one object of the specified type or any of its authtype subtypes.
WavesetException
public static java.lang.Boolean hasAnyPermissionSubType(LighthouseContext s, java.lang.String type, java.util.List rights) throws WavesetException
Therefore, this method is primarily used to determine if the subject has any of the specified rights to at least one object of the specified type or any of its authtype subtypes.
WavesetException
public static java.lang.Boolean hasPermissionToAnyAuthTypeSubType(LighthouseContext s, java.lang.String type, java.util.List rights) throws WavesetException
Therefore, this method is primarily used to determine if the subject has the specified rights to at least one object of the specified type or any of its authtype subtypes.
WavesetException
public static java.lang.Boolean hasCapability(LighthouseContext s, java.lang.String capability) throws WavesetException
WavesetException
public static java.lang.Boolean hasCapabilities(LighthouseContext s, java.util.List capabilities) throws WavesetException
WavesetException
public static java.lang.Boolean controlsAtLeastOneOrganization(LighthouseContext s, java.util.List organizations) throws WavesetException
WavesetException
public static java.util.List getTypesWithRights(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.Map getTypeDisplayNamesWithRights(LighthouseContext s) throws WavesetException
s
- - lighthouse context (session)
WavesetException
public static java.util.List getTypeObjectsAvailableToOrg(LighthouseContext s, java.lang.String typestr, java.lang.String orgid) throws WavesetException
WavesetException
public static GenericObject getResourceObject(LighthouseContext session, java.lang.String resourceId, java.lang.String objectType, java.lang.String objectId, java.util.Map options) throws WavesetException
session
- - a valid lighthouse sessionobjectType
- - a valid object type defined in the resource's objectId
- - a valid fully qualified object identifier on this resource
(e.g. "dn")options
- - options can be specified which control the behavior the
request.
They include:
WavesetException
public static GenericObject getResourceObject(java.lang.String subjectString, java.lang.String resourceId, java.lang.String objectType, java.lang.String objectId, java.util.Map options) throws WavesetException
subjectString
- - a valid Lighthouse subject nameobjectType
- - a valid object type defined in the resource's objectId
- - a valid fully qualified object identifier on this resource
(e.g. "dn")options
- - options can be specified which control the behavior the
request.
They include:
WavesetException
public static java.util.List listResourceObjects(LighthouseContext session, java.lang.String objectType, java.util.List resourceList, java.util.Map options, java.lang.String cacheList) throws WavesetException
WavesetException
public static java.util.List listResourceObjects(LighthouseContext session, java.lang.String objectType, java.util.List resourceList, java.util.Map options, java.lang.String cacheList, java.lang.String clearCacheIfExists) throws WavesetException
WavesetException
public static java.util.List listResourceObjects(java.lang.String subjectString, java.lang.String objectType, java.util.List resourceList, java.util.Map options, java.lang.String cacheList) throws WavesetException
WavesetException
public static java.util.List listResourceObjects(java.lang.String subjectString, java.lang.String objectType, java.util.List resourceList, java.util.Map options, java.lang.String cacheList, java.lang.String clearCacheIfExists) throws WavesetException
WavesetException
public static java.util.List listResourceObjects(LighthouseContext session, java.lang.String objectType, java.lang.String resourceId, java.util.Map options, java.lang.String cacheList, java.lang.String cacheTimeout, java.lang.String clearCacheIfExists) throws WavesetException
WavesetException
public static java.util.List listResourceObjects(LighthouseContext session, java.lang.String objectType, java.lang.String resourceId, java.util.Map options, java.lang.String cacheList) throws WavesetException
WavesetException
public static java.util.List listResourceObjects(LighthouseContext session, java.lang.String objectType, java.lang.String resourceId, java.util.Map options, java.lang.String cacheList, java.lang.String clearCacheIfExists) throws WavesetException
WavesetException
public static java.util.List listResourceObjects(java.lang.String subjectString, java.lang.String objectType, java.lang.String resourceId, java.util.Map options, java.lang.String cacheList, java.lang.String cacheTimeout, java.lang.String clearCacheIfExists) throws WavesetException
WavesetException
public static java.util.List listResourceObjects(java.lang.String subjectString, java.lang.String objectType, java.lang.String resourceId, java.util.Map options, java.lang.String cacheList) throws WavesetException
WavesetException
public static java.util.List listResourceObjects(java.lang.String subjectString, java.lang.String objectType, java.lang.String resourceId, java.util.Map options, java.lang.String cacheList, java.lang.String clearCacheIfExists) throws WavesetException
WavesetException
public static void clearResourceObjectListCache(LighthouseContext session, java.lang.String objectType, java.util.List resourceList) throws WavesetException
WavesetException
public static void clearResourceObjectListCache(LighthouseContext session, java.lang.String objectType, java.lang.String resourceId) throws WavesetException
WavesetException
public static void clearResourceObjectListCache(LighthouseContext session, java.lang.String objectType, java.lang.String resourceId, java.util.Map templateParameters) throws WavesetException
WavesetException
public static void clearResourceObjectListCache(java.lang.String subjectString, java.lang.String objectType, java.util.List resourceList) throws WavesetException
WavesetException
public static void clearResourceObjectListCache(java.lang.String subjectString, java.lang.String objectType, java.lang.String resourceId) throws WavesetException
WavesetException
public static void clearResourceObjectListCache(java.lang.String subjectString, java.lang.String objectType, java.lang.String resourceId, java.util.Map templateParameters) throws WavesetException
WavesetException
public static java.util.List getResourceObjects(LighthouseContext session, java.lang.String objectType, java.lang.String resourceId, java.util.Map options) throws WavesetException
session
- - a valid lighthouse sessionobjectType
- - the name of a valid object class for this specified "resId". If null,
will return objects of all object types defined by the specified resId found within the
specified search container and scope.resourceId
- - the resource from which to get the objectsoptions
- - several options can be specified which control the behavior of the search.
They include:
DN
),
as well as any requested searchAttrsToGet
WavesetException
public static java.util.List getResourceObjects(LighthouseContext session, java.lang.String objectType, java.lang.String resourceId, java.util.Map options, java.lang.String cacheList, java.lang.String cacheTimeout, java.lang.String clearCacheIfExists) throws WavesetException
WavesetException
public static java.util.List getResourceObjects(java.lang.String subjectString, java.lang.String objectType, java.lang.String resourceId, java.util.Map options) throws WavesetException
subjectString
- - a valid lighthouse serialized subjectobjectType
- - the name of a valid object class for this specified "resId". If null,
will return objects of all object types defined by the specified resId found within the
specified search container and scope.resourceId
- - the resource from which to get the objectsoptions
- - several options can be specified which control the behavior of the search.
They include:
DN
),
as well as any requested attrsToGet.
WavesetException
public static java.util.List getResourceObjects(java.lang.String subjectString, java.lang.String objectType, java.lang.String resourceId, java.util.Map options, java.lang.String cacheList, java.lang.String cacheTimeout, java.lang.String clearCacheIfExists) throws WavesetException
WavesetException
public static java.lang.String getResourceIdentity(java.lang.String subjectString, java.lang.String resourceId) throws WavesetException
WavesetException
public static java.lang.String getResourceIdentity(Session session, java.lang.String resourceId) throws WavesetException
WavesetException
public static java.util.List getResourceSchemaAttributeNames(LighthouseContext context, java.lang.String nameOrId) throws WavesetException
WavesetException
public static java.util.List getResourceSchemaResourceAttributeNames(LighthouseContext context, java.lang.String nameOrId) throws WavesetException
WavesetException
public static java.util.List getResourceObjectTypeAttributeNames(LighthouseContext context, java.lang.String resourceName, java.lang.String objectType)
public static java.lang.Object getResourceAttributeFromResource(LighthouseContext context, java.lang.String resourceName, java.lang.String resourceAttribute) throws WavesetException
WavesetException
public static java.lang.Object getResourceAccountAttributeMapping(LighthouseContext context, java.lang.String resourceName, java.lang.String leftHandSideName) throws WavesetException
WavesetException
public static java.lang.Object getResourceAccountAttributeType(LighthouseContext context, java.lang.String resourceName, java.lang.String leftHandSideName) throws WavesetException
WavesetException
public static java.lang.Object callResourceMethod(LighthouseContext context, java.lang.String resourceName, java.lang.String methodName, java.util.Map args) throws WavesetException
WavesetException
public static java.util.List getListOfDnComponents(java.util.List dnlist, java.lang.String componentName)
public static java.util.List getListOfDnComponents(java.lang.String dn, java.lang.String componentName)
public static java.lang.String getDnComponent(java.lang.String dn, java.lang.String componentName)
public static java.util.List buildDns(java.lang.String names, java.lang.String delimeter, java.lang.String baseContext)
public static java.util.List buildDns(java.util.List names, java.lang.String baseContext)
public static java.lang.String buildDn(java.lang.String name, java.lang.String baseContext)
public static boolean isFeatureSupported(LighthouseContext ctx, java.lang.String resourceName, java.lang.String featureName) throws WavesetException
ctx
- The LighthouseContext to use.resourceName
- The name of the resource.featureName
- The constant of the feature. See
ResourceAdapter.Features
for a list of features.
WavesetException
- If the resource cannot be loaded.ResourceAdapter.Features
public static java.util.List getAuditActions(LighthouseContext s, java.lang.String objectType) throws WavesetException
WavesetException
public static java.util.List getAuditActions(LighthouseContext s, java.lang.String objectType, boolean includeAll) throws WavesetException
WavesetException
public static java.util.List getAuditObjectTypes(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getAuditStatusList(LighthouseContext s) throws WavesetException
WavesetException
public static java.util.List getAuditStatusList(LighthouseContext s, boolean includeAll) throws WavesetException
WavesetException
public static java.lang.String getTypeDisplayName(LighthouseContext s, java.lang.String typeName) throws WavesetException
WavesetException
public static java.util.List getTypeNamesWithEncryptedData() throws WavesetException
WavesetException
public static java.util.Map getStartupTypesMap()
public static java.lang.String testObject(LighthouseContext s, java.lang.String typeName, java.lang.String id)
public static java.lang.String testUser(LighthouseContext s, java.lang.String id)
public static java.lang.String formatDate(java.lang.String src)
public static Session getSessionForActiveSyncResource(java.lang.String name) throws WavesetException
WavesetException
public static java.util.List listServers(LighthouseContext s) throws WavesetException
WavesetException
public static java.lang.String convertDateToString(java.lang.String dateStr, java.lang.String simpleDateFormatPattern)
M/d/y H:m:s z
M/d/y H:m:s
M/d/y
yyyyMMdd HH:mm:ss (default)
yyyyMMdd HH:mm:ss.SSS (canonical)
nnnnnnnnnnnnnnnnn (milliseconds)
public static java.lang.String convertDateToString(java.util.Date date, java.lang.String simpleDateFormatPattern)
M/d/y H:m:s z
M/d/y H:m:s
M/d/y
yyyyMMdd HH:mm:ss (default)
yyyyMMdd HH:mm:ss.SSS (canonical)
nnnnnnnnnnnnnnnnn (milliseconds)
public static java.lang.String getRelativeDateString(int ord, int day, int mo, java.lang.String simpleDateFormatPattern)
ord
- Integer representing the ordinal of the day of the week for the generated date
and must be a number between 1
and 5
inclusive. If
there are only four days in the month and the value of this parameter is
5
, the result of this method call is undefined.day
- Integer representing a day of the week. Legal values correspond with constants
used by the Calendar
class, namely:
1 (Sunday) 2 (Monday) 3 Tuesday) 4 (Wednesday) 5 (Thursday) 6 (Friday) 7 (Saturday)
mo
- Integer representing a month. Legal values correspond with constants
used by the Calendar
class, namely:
0 (January) 1 (February) 2 (March) 3 (April) 4 (May) 5 (June) 6 (July) 7 (August) 8 (September) 9 (October) 10 (November) 11 (December)
simpleDateFormatPattern
- formatter for the returned data strings of one of the forms:
M/d/y H:m:s z M/d/y H:m:s M/d/y yyyyMMdd HH:mm:ss (default) yyyyMMdd HH:mm:ss.SSS (canonical) nnnnnnnnnnnnnnnnn (milliseconds)
simpleDateFormatPatern
public static java.lang.String getRelativeDateString(int field, int amount, java.lang.String simpleDateFormatPattern)
field
- Integer corresponding to the field of the date to increment.
Legal values correspond with constants used by the
Calendar
class, namely:
0 (era)
1 (year)
2 (month)
3 (week of year)
4 (week of month)
5 (day of month)
6 (day of year)
7 (day of week)
8 (day of week in month)
9 (am/pm)
10 (hour)
11 (hour of day)
12 (minute)
13 (second)
14 (millisecond)
15 (zone offset)
16 (daylight savings time offset)
amount
- simpleDateFormatPattern
- formatter for the returned data strings of one of the forms:
M/d/y H:m:s z M/d/y H:m:s M/d/y yyyyMMdd HH:mm:ss (default) yyyyMMdd HH:mm:ss.SSS (canonical) nnnnnnnnnnnnnnnnn (milliseconds)
simpleDateFormatPatern
public static java.util.Map getRepetitionUnitsMap()
public static java.util.List getFormFieldNames(LighthouseContext s, java.lang.String processName) throws WavesetException
s
- processName
- String
used to access the form from which attributes
will be retrieved. If null, defaults to 'userForm'.
WavesetException
public static java.util.Map getAttributesSelectOptionGroupMap(LighthouseContext s) throws WavesetException
Select.setOptionGroupMap(java.util.Map)
for details
on the structure of this map.
s
-
optionGroupMap
property of a Select component
- Throws:
WavesetException
- See Also:
Select
public static java.util.Map getAttributesSelectOptionGroupMap(LighthouseContext s, java.util.Map additionalEntries, java.lang.String additionalEntriesMsg) throws WavesetException
Select.setOptionGroupMap(java.util.Map)
for details
on the structure of this map.
s
- additionalEntries
- The additional attributes to store in the map.additionalEntriesMsg
- The message key of the option group under which
to store the additional entries.
optionGroupMap
property of a Select component
- Throws:
WavesetException
- See Also:
Select
public static java.util.Map getAttributesSelectValueMap(LighthouseContext s) throws WavesetException
Select.setValueMap(java.util.Map)
for details
on the structure of this map.
s
-
valueMap
property of a Select component
- Throws:
WavesetException
- See Also:
Select
public static java.util.List getResourceAttributes(LighthouseContext s, java.lang.String resource) throws WavesetException
WavesetException
public static java.lang.String getCodeId(java.lang.String c)
c
- - Fully qualified classname.
codeId
for the specified class if it exists;
otherwise returns null
.public static java.lang.String getCodeId(java.lang.Class c)
c
- Specified class.
codeId
for the specified class if it exists;
otherwise returns null
.public static java.lang.String getVersionFromCodeId(java.lang.String codeid)
codeid
- Code id to parse.
public static java.lang.String getCodeIdVersion(java.lang.String clazz)
clazz
- Full qualified class to query.
public static java.lang.String getCodeIdVersion(java.lang.Class clazz)
clazz
- Class to query.
public static java.lang.String getAccountAttributeType(LighthouseContext session, java.lang.String fqAttrName)
session
- fqAttrName
- fully qualified attribute name expressed something
like user.waveset.roles or user.accounts[ldap dir].name
public static boolean isAccountAttributeMultiValued(LighthouseContext session, java.lang.String fqAttrName)
session
- fqAttrName
- fully qualified attribute name expressed something
like user.waveset.roles or user.accounts[ldap dir].name
public static java.util.Locale getDisplayLocale(Session session)
public static java.util.List getTimeZoneIdToDisplayNameMap(java.util.Locale locale)
public static final java.lang.String getLocalizedHelpAsString(Session displaySession, java.lang.Object help)
public static final java.lang.String formatTransactionText(java.util.Locale locale, java.util.List attrNames, java.util.List attrValues)
locale
- The locale to display inattrNames
- The list of attribute names to displayattrValues
- The list of attribute values to displaypublic static final java.util.List getInstalledLocales(java.util.List localeIds, java.util.Locale displayLocale)
public static java.util.List getObjectAttributeNames(GenericObject obj)
obj
- the GenericObject
public static java.util.List getAvailablePDFFonts()
public static java.util.Map getAvailableCharsets()
public static java.util.Map getAuditPublisherMap(LighthouseContext context) throws WavesetException
WavesetException
public static java.util.Map getAuditFormatterMap(LighthouseContext context) throws WavesetException
WavesetException
public static java.util.List getAuditPublisherOptions(java.lang.String className)
public static java.lang.String getServletContextPath(RequestState request)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |