|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.ui.FormUtil
public class 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 GenericObject |
callWebService(LighthouseContext ctx,
java.lang.String action,
java.lang.String objectType,
java.lang.String delegatingResourceName,
java.lang.String resourceName,
GenericObject parameters)
This method will call a web service on a WebServiceResourceAdapter |
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.util.Map<java.lang.String,java.lang.Object> options)
Variant that takes an options map. |
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.util.Map<java.lang.String,java.lang.Object> options)
Variant that takes an options map. |
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.util.List<java.lang.String> |
convertListGenObjToStr(java.lang.String format,
java.lang.String delim,
java.util.List<GenericObject> genObjList)
Convert a list of GenericObject to a list of delimited strings. |
static java.util.List<java.lang.String> |
convertListGenObjToStr(java.lang.String format,
java.lang.String delim,
java.util.List<GenericObject> genObjList,
java.lang.String dateFormat)
Convert a list of GenericObject that can contain dates to a list of delimited strings. |
static java.util.List<GenericObject> |
convertListStrToGenObj(java.lang.String format,
java.lang.String delim,
java.util.List<java.lang.String> strList)
Convert a list of delimited strings to a list of generic objects. |
static java.util.List<GenericObject> |
convertListStrToGenObj(java.lang.String format,
java.lang.String delim,
java.lang.String str)
Convert a delimited String to a List of GenericObjects |
static int |
countObjects(LighthouseContext s,
java.lang.String typeName,
java.util.Map options)
Count objects of specified type. |
static java.util.Date |
findRoleEventDate(java.util.List roleInfos,
java.util.Map options)
Searches for an event date in a list of role info generic objects using the options specified. |
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 |
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,
java.util.Map options)
Returns a list of applications in the authorization scope of the specified lighthouse context. |
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<java.lang.String> |
getAvailableDataOrGatewayCipherNames(com.waveset.session.Session displaySession)
|
static java.util.List<java.lang.String> |
getAvailableDataOrGatewayCiphers(com.waveset.session.Session displaySession)
|
static java.util.List<java.lang.String> |
getAvailableEncryptionKeyCipherNames(com.waveset.session.Session displaySession)
|
static java.util.List<java.lang.String> |
getAvailableEncryptionKeyCiphers(com.waveset.session.Session displaySession)
|
static java.util.List |
getAvailablePDFFonts()
|
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.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.List<java.lang.String> |
getComplexFormat(java.lang.String str,
java.lang.String delim)
This method converts a delimited string into a list of the delimited components. |
static GenericObject |
getConfigExtension(com.waveset.object.ObjectRef objectRef)
Returns the extension within a Configuration object, expecting that extension to be a GenericObject. |
static java.util.Map |
getConfigExtensionMap(java.util.List configObjectRefs)
Takes a list of ObjectRefs that are expected to be References to Configuration objects that contain an extension which is a generic object with a "name" attribute. |
static java.lang.String |
getCurrentObjectEncryption()
|
static java.lang.String |
getCurrentServerKeyEncryption()
|
static java.util.Locale |
getDisplayLocale(com.waveset.session.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 |
getEndUserResources(LighthouseContext ctx)
|
static java.util.List<java.lang.String> |
getExportedTypes()
Returns a list of type names that are currently configured for export |
static java.util.List |
getFormFieldNames(LighthouseContext s,
java.lang.String processName)
Returns a list of attributes from a form. |
static java.lang.String |
getGatewayKeyEncryption()
|
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 |
getLibraryObjectNames(LighthouseContext context,
java.lang.String libraryName,
java.lang.String subtype)
Obtains the library from the repository and returns a list of the names of the objects in the library prepended with the library name. |
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(com.waveset.session.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 com.waveset.object.ObjectRef |
getObjectGroupByRights(LighthouseContext s,
java.lang.String type,
java.util.List<java.lang.String> rights)
Get an ObjectGroup reference that the caller has the specified access rights to. |
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.Map options)
Returns a list of names of objects of a given type to which the session owner (subject) has access. |
static java.util.Map<java.lang.String,java.util.List> |
getObjectNamesBySubtype(LighthouseContext s,
java.lang.String typeName,
java.util.List<java.lang.String> subtypes)
Variant of getObjectNames() when a form needs the results broken out by subtype |
static com.waveset.object.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 |
getOrganizationsDisplayNames(LighthouseContext s)
Short cut for calling getOrganizationsDisplayNames(LighthouseContext s, Map options) with no options. |
static java.util.List |
getOrganizationsDisplayNames(LighthouseContext s,
java.util.Map options)
|
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.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(com.waveset.session.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 |
getResourceObjectTypeDisplayNames(LighthouseContext context,
java.lang.String resourceName)
|
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 |
getResourcesByType(LighthouseContext s,
java.util.List types)
Returns a Map of resource name/id pairs for all resources of the specified type. |
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.Map |
getResourcesMap(LighthouseContext s,
java.util.List current)
Returns a Map which is expected to be used as the value for the valueMap attribute of a MultiSelect component. |
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.util.List |
getRoleTypeNames(LighthouseContext s,
java.util.Map options)
Returns a list of the configured Role type names from the Role Configuration object. |
static java.lang.String |
getServletContextPath(com.waveset.ui.util.RequestState request)
|
static com.waveset.session.Session |
getSessionForActiveSyncResource(java.lang.String name)
|
static java.lang.String |
getSessionTimeoutString(java.lang.String milliseconds,
com.waveset.ui.util.RequestState state)
Takes a string representing sessionTimeout (in milliseconds) for a login application and returns a formatted string suitable for use in the Login App List form. |
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 |
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 |
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.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 |
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 boolean |
isSRMIntegrated(LighthouseContext ctx)
|
static boolean |
isSubordinate(LighthouseContext ctx,
java.lang.String userName,
java.util.Map options)
Determines if a user is subordinate to the caller by traversing the idmManager hierarchy. |
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.Date |
setRoleEventDate(LighthouseContext s,
java.util.List<GenericObject> roleInfos,
java.lang.String roleName,
java.lang.String eventName,
java.util.Map options)
Sets a role event date on a role which may have contained roles that need to inherit the set event date. |
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)
|
static boolean |
workItemTypeIsOrIsChildOf(LighthouseContext s,
java.lang.String selectedWorkItemType,
java.lang.String workItemType)
Returns true if the 'selectedWorkItemType' is either the same as or an extension to / child workItemType of 'workItemType' |
Methods inherited from class java.lang.Object |
---|
equals, 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 java.lang.String buildDn(java.lang.String name, java.lang.String baseContext)
public static java.util.List buildDns(java.util.List names, java.lang.String baseContext)
public static java.util.List buildDns(java.lang.String names, java.lang.String delimeter, java.lang.String baseContext)
public static java.lang.Object callResourceMethod(LighthouseContext context, java.lang.String resourceName, java.lang.String methodName, java.util.Map args) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static GenericObject callWebService(LighthouseContext ctx, java.lang.String action, java.lang.String objectType, java.lang.String delegatingResourceName, java.lang.String resourceName, GenericObject parameters) throws com.waveset.util.WavesetException
ctx
- the LighthouseContextaction
- value returned by the getAction from WebServiceOperationobjectType
- value returned by the getObjectType from WebServiceOperationdelegatingResourceName
- the name of a Resource that contains an 'actionDelegate'
reference to 'resourceName'. This is needed in order to
transform the 'parameters' key values from left-hand side
values to right-hand side values.resourceName
- name of a resource whose adapter extends the WebServiceResourceAdapter
com.waveset.util.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 com.waveset.util.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)
com.waveset.util.WavesetException
public static void clearResourceObjectListCache(LighthouseContext session, java.util.Map<java.lang.String,java.lang.Object> options) throws com.waveset.util.WavesetException
session
- - an existing sessionoptions
- - a map of options as discussed above
com.waveset.util.WavesetException
getResourceObjects(LighthouseContext session, String
objectType, String resourceId, Map options)
,
listResourceObjects(LighthouseContext session, String
objectType, List resourceList, Map options, String cacheList)
public static void clearResourceObjectListCache(LighthouseContext session, java.lang.String objectType, java.util.List resourceList) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static void clearResourceObjectListCache(LighthouseContext session, java.lang.String objectType, java.lang.String resourceId) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static void clearResourceObjectListCache(LighthouseContext session, java.lang.String objectType, java.lang.String resourceId, java.util.Map templateParameters) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static void clearResourceObjectListCache(java.lang.String subjectString, java.util.Map<java.lang.String,java.lang.Object> options) throws com.waveset.util.WavesetException
subjectString
- - a valid lighthouse serialized subjectoptions
- - a map of options as discussed above
com.waveset.util.WavesetException
getResourceObjects(LighthouseContext session, String
objectType, String resourceId, Map options)
,
listResourceObjects(LighthouseContext session, String
objectType, List resourceList, Map options, String cacheList)
public static void clearResourceObjectListCache(java.lang.String subjectString, java.lang.String objectType, java.util.List resourceList) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static void clearResourceObjectListCache(java.lang.String subjectString, java.lang.String objectType, java.lang.String resourceId) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static void clearResourceObjectListCache(java.lang.String subjectString, java.lang.String objectType, java.lang.String resourceId, java.util.Map templateParameters) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.lang.Boolean controlsAtLeastOneOrganization(LighthouseContext s, java.util.List organizations) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
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 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.util.List<java.lang.String> convertListGenObjToStr(java.lang.String format, java.lang.String delim, java.util.List<GenericObject> genObjList) throws com.waveset.util.WavesetException
format
- - format to use for delimited Stringdelim
- - delimiter used in delimited String, the whole string
passed in is used as a delimiter. Special characters
should not be escaped in the string that will be
handled getComplexFormat
.genObjList
- - GenericObject List
com.waveset.util.WavesetException
public static java.util.List<java.lang.String> convertListGenObjToStr(java.lang.String format, java.lang.String delim, java.util.List<GenericObject> genObjList, java.lang.String dateFormat) throws com.waveset.util.WavesetException
format
- - format to use for delimited Stringdelim
- - delimiter used in delimited String, the whole string
passed in is used as a delimiter. Special characters
should not be escaped in the string that will be
handled getComplexFormat(String, String)
genObjList
- - GenericObject ListdateFormat
- - format of date if GenericObject contains dates
com.waveset.util.WavesetException
public static java.util.List<GenericObject> convertListStrToGenObj(java.lang.String format, java.lang.String delim, java.util.List<java.lang.String> strList) throws com.waveset.util.WavesetException
format
- - format of delimited Stringdelim
- - delimiter used in delimited String, the whole string
passed in is used as a delimiter. Special characters
should not be escaped in the string that will be
handled getComplexFormat(String, String)
strList
- - List of delimited String to convert
com.waveset.util.WavesetException
public static java.util.List<GenericObject> convertListStrToGenObj(java.lang.String format, java.lang.String delim, java.lang.String str) throws com.waveset.util.WavesetException
format
- - format of delimited Stringdelim
- - delimiter used in delimited String, the whole string
passed in is used as a delimiter. Special characters
should not be escaped in the string that will be
handled in getComplexFormat(String, String)
str
- - delimited String
com.waveset.util.WavesetException
public static int countObjects(LighthouseContext s, java.lang.String typeName, java.util.Map options) throws com.waveset.util.WavesetException
s
- An authenticated context objecttypeName
- The name of the type of object to be countedoptions
- A map of options that may include the following:
- "conditions" - which can be specified in the following ways:
* public static java.util.Date findRoleEventDate(java.util.List roleInfos, java.util.Map options) throws com.waveset.util.WavesetException
options
- - map of options - see description above for supported
options
com.waveset.util.WavesetException
public static java.lang.String formatDate(java.lang.String src)
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 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 java.util.List getAdministrators(LighthouseContext lc) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getAdminRoles(LighthouseContext s, java.util.Map options) throws com.waveset.util.WavesetException
public static java.util.List getApplications(LighthouseContext s, java.util.Map options) throws com.waveset.util.WavesetException
public static java.util.Map getAttributesSelectOptionGroupMap(LighthouseContext s) throws com.waveset.util.WavesetException
Select.setOptionGroupMap(java.util.Map)
for details
on the structure of this map.
s
-
optionGroupMap
property of a Select component
- Throws:
com.waveset.util.WavesetException
- See Also:
Select
public static java.util.Map getAttributesSelectOptionGroupMap(LighthouseContext s, java.util.Map additionalEntries, java.lang.String additionalEntriesMsg) throws com.waveset.util.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:
com.waveset.util.WavesetException
- See Also:
Select
public static java.util.Map getAttributesSelectValueMap(LighthouseContext s) throws com.waveset.util.WavesetException
Select.setValueMap(java.util.Map)
for details
on the structure of this map.
s
-
valueMap
property of a Select component
- Throws:
com.waveset.util.WavesetException
- See Also:
Select
public static java.util.List getAuditActions(LighthouseContext s, java.lang.String objectType) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getAuditActions(LighthouseContext s, java.lang.String objectType, boolean includeAll) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.Map getAuditFormatterMap(LighthouseContext context) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getAuditObjectTypes(LighthouseContext s) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.Map getAuditPublisherMap(LighthouseContext context) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getAuditPublisherOptions(java.lang.String className)
public static java.util.List getAuditStatusList(LighthouseContext s) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getAuditStatusList(LighthouseContext s, boolean includeAll) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.Map getAvailableCharsets()
public static java.util.List<java.lang.String> getAvailableDataOrGatewayCipherNames(com.waveset.session.Session displaySession)
public static java.util.List<java.lang.String> getAvailableDataOrGatewayCiphers(com.waveset.session.Session displaySession)
public static java.util.List<java.lang.String> getAvailableEncryptionKeyCipherNames(com.waveset.session.Session displaySession)
public static java.util.List<java.lang.String> getAvailableEncryptionKeyCiphers(com.waveset.session.Session displaySession)
public static java.util.List getAvailablePDFFonts()
public static java.util.List getCapabilities(LighthouseContext s, java.util.Map options) throws com.waveset.util.WavesetException
public static java.lang.String getCodeIdVersion(java.lang.Class clazz)
clazz
- Class to query.
public static java.lang.String getCodeIdVersion(java.lang.String clazz)
clazz
- Full qualified class to query.
public static java.util.List<java.lang.String> getComplexFormat(java.lang.String str, java.lang.String delim)
str
- - delimited stringdelim
- - delimiter used, the whole string passed in is used as one
delimiter. Special characters should not be escaped in
the string, we currently only escape the | (pipe) char
via escapeDelimiter(String)
.
public static GenericObject getConfigExtension(com.waveset.object.ObjectRef objectRef) throws com.waveset.util.WavesetException
objectRef
- -- Reference to a Configuration object containing
a GenericObject
com.waveset.util.WavesetException
public static java.util.Map getConfigExtensionMap(java.util.List configObjectRefs) throws com.waveset.util.WavesetException
configObjectRefs
- -- list of ObjectRefs to Config objects
com.waveset.util.WavesetException
public static java.lang.String getCurrentObjectEncryption() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.lang.String getCurrentServerKeyEncryption() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.Locale getDisplayLocale(com.waveset.session.Session session)
public static java.lang.String getDnComponent(java.lang.String dn, java.lang.String componentName)
public static java.util.List getEndUserResources(LighthouseContext ctx) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List<java.lang.String> getExportedTypes()
public static java.util.List getFormFieldNames(LighthouseContext s, java.lang.String processName) throws com.waveset.util.WavesetException
s
- processName
- String
used to access the form from which attributes
will be retrieved. If null, defaults to 'userForm'.
com.waveset.util.WavesetException
public static java.lang.String getGatewayKeyEncryption() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static final java.util.List getInstalledLocales(java.util.List localeIds, java.util.Locale displayLocale)
public static final java.util.List getLibraryObjectNames(LighthouseContext context, java.lang.String libraryName, java.lang.String subtype) throws com.waveset.util.WavesetException
context
- - Lighthouse contextlibraryName
- - library namesubtype
- - subtype of object to list from the library
com.waveset.util.WavesetException
- upon error.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 final java.lang.String getLocalizedHelpAsString(com.waveset.session.Session displaySession, java.lang.Object help)
public static java.util.List getLoginInterfaceDisplayNames(LighthouseContext notUsed) throws com.waveset.util.WavesetException
notUsed
- Context - not actually used, left for backward compatibility - can be null.
com.waveset.util.WavesetException
public static java.lang.String getMemberOrganization(LighthouseContext s) throws com.waveset.util.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.
com.waveset.util.WavesetException
public static PersistentObject getObject(LighthouseContext s, java.lang.String typeName, java.lang.String id) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getObjectAttributeNames(GenericObject obj)
obj
- the GenericObject
public static java.util.List getObjectDisplayNames(LighthouseContext s, java.lang.String typeName, java.util.Map options) throws com.waveset.util.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 com.waveset.object.ObjectRef getObjectGroupByRights(LighthouseContext s, java.lang.String type, java.util.List<java.lang.String> rights) throws com.waveset.util.WavesetException
s
- Context of the caller. If the calling context is null, null
is returned.type
- Type of object to test rights for. Name of type must match
formal name as specified in com.waveset.object.Constants. If the
type does not exist, null is returned.rights
- List of Rights to check for. Rights must be the formal
name as specified in com.waveset.object.Constants. If any of the
rights specified do not exist null is returned. Both direct and implied
matches are considered matches.
com.waveset.util.WavesetException
public static java.util.List getObjectNames(LighthouseContext s, java.lang.String typeName) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getObjectNames(LighthouseContext s, java.lang.String typeName, java.util.Map options) throws com.waveset.util.WavesetException
public static java.util.Map<java.lang.String,java.util.List> getObjectNamesBySubtype(LighthouseContext s, java.lang.String typeName, java.util.List<java.lang.String> subtypes) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static com.waveset.object.ObjectRef getObjectRef(LighthouseContext s, java.lang.String typeName, java.lang.String id) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getObjectRefList(LighthouseContext s, java.lang.String typeName, java.util.List ids) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.lang.String getOrganizationDisplayableNameByUserId(LighthouseContext s, java.util.List userIds) throws com.waveset.util.WavesetException
s
- userIds
-
com.waveset.util.WavesetException
public static java.util.List getOrganizationsDisplayNames(LighthouseContext s) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getOrganizationsDisplayNames(LighthouseContext s, java.util.Map options) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getOrganizationsDisplayNamesWithRight(LighthouseContext s, java.lang.String type, java.lang.String targetRight) throws com.waveset.util.WavesetException
s
- type
- targetRight
-
com.waveset.util.WavesetException
public static java.util.List getOrganizationsDisplayNamesWithRight(LighthouseContext s, java.lang.String type, java.lang.String targetRight, java.util.Map options) throws com.waveset.util.WavesetException
s
- type
- targetRight
- options
-
com.waveset.util.WavesetException
public static java.util.List getOrganizationsDisplayNamesWithRights(LighthouseContext s, java.lang.String type, java.util.List targetRights) throws com.waveset.util.WavesetException
s
- type
- targetRights
-
com.waveset.util.WavesetException
public static java.util.List getOrganizationsDisplayNamesWithRights(LighthouseContext s, java.lang.String type, java.util.List targetRights, java.util.Map options) throws com.waveset.util.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:
com.waveset.util.WavesetException
public static java.lang.String getOrgPath(ObjectGroup group) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getPolicies(LighthouseContext s) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getPolicies(LighthouseContext s, java.util.Map options) throws com.waveset.util.WavesetException
public static java.util.List getPolicies(LighthouseContext s, java.lang.String currentPolicy) throws com.waveset.util.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
com.waveset.util.WavesetException
public static java.util.List getPolicies(LighthouseContext s, java.lang.String type, java.lang.String currentPolicy) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getPrivateApplications(LighthouseContext s, java.lang.String roleName) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getPrivateResources(LighthouseContext s, java.lang.String roleName) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
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.lang.Object getResourceAccountAttributeMapping(LighthouseContext context, java.lang.String resourceName, java.lang.String leftHandSideName) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.lang.Object getResourceAccountAttributeType(LighthouseContext context, java.lang.String resourceName, java.lang.String leftHandSideName) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.lang.Object getResourceAttributeFromResource(LighthouseContext context, java.lang.String resourceName, java.lang.String resourceAttribute) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getResourceAttributes(LighthouseContext s, java.lang.String resource) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.lang.String getResourceIdentity(com.waveset.session.Session session, java.lang.String resourceId) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.lang.String getResourceIdentity(java.lang.String subjectString, java.lang.String resourceId) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static GenericObject getResourceObject(LighthouseContext session, java.lang.String resourceId, java.lang.String objectType, java.lang.String objectId, java.util.Map options) throws com.waveset.util.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:
com.waveset.util.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 com.waveset.util.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:
com.waveset.util.WavesetException
public static java.util.List getResourceObjects(LighthouseContext session, java.lang.String objectType, java.lang.String resourceId, java.util.Map options) throws com.waveset.util.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
com.waveset.util.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 com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getResourceObjects(java.lang.String subjectString, java.lang.String objectType, java.lang.String resourceId, java.util.Map options) throws com.waveset.util.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.
com.waveset.util.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 com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getResourceObjectTypeAttributeNames(LighthouseContext context, java.lang.String resourceName, java.lang.String objectType)
public static java.util.List getResourceObjectTypeDisplayNames(LighthouseContext context, java.lang.String resourceName)
public static java.util.List getResources(LighthouseContext s) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getResources(LighthouseContext s, java.util.List current) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getResources(LighthouseContext s, java.util.Map options) throws com.waveset.util.WavesetException
public static java.util.List getResources(LighthouseContext s, java.lang.String matchType, java.lang.String value) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getResources(LighthouseContext s, java.lang.String matchType, java.lang.String value, java.util.List current) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getResourcesByType(LighthouseContext s, java.util.List types) throws com.waveset.util.WavesetException
s
- Lighthouse contextcurrent
- a list of one or more currently selected resources
com.waveset.util.WavesetException
public static java.util.List getResourceSchemaAttributeNames(LighthouseContext context, java.lang.String nameOrId) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getResourceSchemaResourceAttributeNames(LighthouseContext context, java.lang.String nameOrId) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.Map getResourcesMap(LighthouseContext s, java.util.List current) throws com.waveset.util.WavesetException
s
- Lighthouse contextcurrent
- a list of one or more currently selected resources
com.waveset.util.WavesetException
public static java.util.List getResourcesSupportingContainerObjectTypes(LighthouseContext s) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getResourcesSupportingContainerObjectTypes(LighthouseContext s, java.util.Map options) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getResourcesSupportingObjectTypes(LighthouseContext s, java.util.List objectTypes) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getResourcesSupportingObjectTypes(LighthouseContext s, java.util.List objectTypes, java.util.List current) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getResourcesSupportingObjectTypes(LighthouseContext s, java.util.List objectTypes, java.util.List current, java.util.Map options) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getResourcesSupportingObjectTypes(LighthouseContext s, java.util.List objectTypes, java.util.Map options) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getRoles(LighthouseContext s) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getRoles(LighthouseContext s, java.util.List current) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getRoles(LighthouseContext s, java.util.Map options) throws com.waveset.util.WavesetException
public static java.util.List getRoles(LighthouseContext s, java.lang.String current) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getRoleTypeNames(LighthouseContext s, java.util.Map options) throws com.waveset.util.WavesetException
s
- - contextoptions
- - map of options - see description above for supported
options
com.waveset.util.WavesetException
public static java.lang.String getServletContextPath(com.waveset.ui.util.RequestState request)
public static com.waveset.session.Session getSessionForActiveSyncResource(java.lang.String name) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.lang.String getSessionTimeoutString(java.lang.String milliseconds, com.waveset.ui.util.RequestState state)
milliseconds
- -- String representation of sessionTimeout in millisecondsstate
- -- RequestState context needed to determine the session locale
public static java.util.Map getStartupTypesMap()
public static java.util.List getSubordinates(LighthouseContext s, java.lang.String manager, java.util.Map options) throws com.waveset.util.WavesetException
s
- the LighthouseContextmanager
- the manager whose subordinates are being requestedoptions
- com.waveset.util.WavesetException
public static java.util.List getTimeZoneIdToDisplayNameMap(java.util.Locale locale)
public static java.lang.String getTypeDisplayName(LighthouseContext s, java.lang.String typeName) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.Map getTypeDisplayNamesWithRights(LighthouseContext s) throws com.waveset.util.WavesetException
s
- - lighthouse context (session)
com.waveset.util.WavesetException
public static java.util.List getTypeNamesWithEncryptedData() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getTypeObjectsAvailableToOrg(LighthouseContext s, java.lang.String typestr, java.lang.String orgid) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getTypesWithRights(LighthouseContext s) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getUnassignedAdminRoles(LighthouseContext s, java.util.List current) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getUnassignedAdminRoles(LighthouseContext s, java.util.List current, java.util.Map options) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getUnassignedApplications(LighthouseContext s, java.util.List roleNames, java.util.List current) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getUnassignedApplications(LighthouseContext s, java.util.List roleNames, java.util.Map options) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getUnassignedApplications(LighthouseContext s, java.util.Map options) throws com.waveset.util.WavesetException
public static java.util.List getUnassignedApplications(LighthouseContext s, java.lang.String roleName) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getUnassignedApplications(LighthouseContext s, java.lang.String roleName, java.util.List current) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getUnassignedCapabilities(LighthouseContext s) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getUnassignedCapabilities(LighthouseContext s, java.util.List current) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getUnassignedCapabilities(LighthouseContext s, java.util.List current, java.util.Map options) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getUnassignedCapabilities(LighthouseContext s, java.util.List current, java.lang.String currentName) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getUnassignedResources(LighthouseContext s, java.util.Map options) throws com.waveset.util.WavesetException
public static java.util.List getUsers(LighthouseContext s) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List getUsers(LighthouseContext s, java.util.Map options) throws com.waveset.util.WavesetException
public static java.lang.Boolean hasAllPermissions(LighthouseContext s, java.lang.String type, java.util.List rights) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.lang.Boolean hasAllPermissionsSubType(LighthouseContext s, java.lang.String type, java.util.List rights) throws com.waveset.util.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.
com.waveset.util.WavesetException
public static java.lang.Boolean hasAnyPermission(LighthouseContext s, java.lang.String type, java.util.List rights) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.lang.Boolean hasAnyPermissionSubType(LighthouseContext s, java.lang.String type, java.util.List rights) throws com.waveset.util.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.
com.waveset.util.WavesetException
public static java.lang.Boolean hasCapabilities(LighthouseContext s, java.util.List capabilities) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.lang.Boolean hasCapability(LighthouseContext s, java.lang.String capability) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.lang.Boolean hasPermissionToAnyAuthTypeSubType(LighthouseContext s, java.lang.String type, java.util.List rights) throws com.waveset.util.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.
com.waveset.util.WavesetException
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 boolean isFeatureSupported(LighthouseContext ctx, java.lang.String resourceName, java.lang.String featureName) throws com.waveset.util.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.
com.waveset.util.WavesetException
- If the resource cannot be loaded.ResourceAdapter.Features
public static boolean isSRMIntegrated(LighthouseContext ctx) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static boolean isSubordinate(LighthouseContext ctx, java.lang.String userName, java.util.Map options) throws com.waveset.util.WavesetException
ctx
- the LighthouseContextuserName
- the user to be tested for subordinatenessoptions
- com.waveset.util.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 com.waveset.util.WavesetException
com.waveset.util.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 com.waveset.util.WavesetException
com.waveset.util.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 com.waveset.util.WavesetException
com.waveset.util.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 com.waveset.util.WavesetException
com.waveset.util.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 com.waveset.util.WavesetException
com.waveset.util.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 com.waveset.util.WavesetException
com.waveset.util.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 com.waveset.util.WavesetException
com.waveset.util.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 com.waveset.util.WavesetException
com.waveset.util.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 com.waveset.util.WavesetException
com.waveset.util.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 com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List listServers(LighthouseContext s) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.Date setRoleEventDate(LighthouseContext s, java.util.List<GenericObject> roleInfos, java.lang.String roleName, java.lang.String eventName, java.util.Map options) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static java.util.List sort(java.util.List l)
l
- The List to sort.
public static java.lang.String stripOrgPath(java.lang.String path)
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 boolean workItemTypeIsOrIsChildOf(LighthouseContext s, java.lang.String selectedWorkItemType, java.lang.String workItemType) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |