|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.schemedit.JspFunctions
public class JspFunctions
Provides functionality used by jsp function calls.
| Constructor Summary | |
|---|---|
JspFunctions()
|
|
| Method Summary | |
|---|---|
static boolean |
arrayContains(String[] items,
String item)
NOT YET DOCUMENTED |
static String |
decodePath(String s)
Removes jsp-encoded xpath indexing from a string |
static boolean |
fileExists(String relativePath,
HttpServletRequest request)
Test for existence of file relative to the jsp page in which the function is called. |
static AsnStandardsNode |
getAsnStandard(String asnId,
CATServiceHelper helper)
|
static DcsDataDocReader |
getDcsDataDocReader(DocReader docReader)
Gets the dcsDataDocReader attribute of the JspFunctions class |
static String |
getDcsField(String fieldName,
DocReader docReader)
Gets the dcsField attribute of the JspFunctions class |
static String |
getFullName(String username,
UserManager userManager)
Gets the fullName attribute of the JspFunctions class |
static String |
getLocalizedSchemaXML(String url)
Gets the localizedSchemaXML attribute of the JspFunctions class |
static String |
getNamedXPath(String pathName,
String xmlFormat,
FrameworkRegistry reg)
Returns the xpath for the provided named schema path (pathName) as configured for the specified framework (xmlFormat). |
static List |
getPrompts(String xpath,
MetaDataFramework framework)
Gets the prompts defined in the fieldFile for the current xpath and framework. |
static String |
getSetLabel(SetInfo setInfo)
Gets the setLabel attribute of the JspFunctions class |
static String |
getStatusLabel(String rawLabel,
String collection,
SessionBean sessionBean)
Gets the statusLabel for the specified collection, converting rawLabel to it's human-readable form if it is a "finalStatus". |
static boolean |
hasCollectionRole(User user,
String role,
String collection)
Returns true if user has specified permission for specified collectino |
static boolean |
hasRole(User user,
String role)
NOT YET DOCUMENTED |
static boolean |
isAuthorized(String operation,
SessionBean sessionBean)
Gets the authorized attribute of the JspFunctions class |
static boolean |
isAuthorized(String operation,
SessionBean sessionBean,
String collection)
Gets the authorized attribute of the JspFunctions class |
static boolean |
listContains(List items,
String item)
NOT YET DOCUMENTED |
static void |
main(String[] args)
The main program for the JspFunctions class |
static void |
prtln(String s)
NOT YET DOCUMENTED |
static String |
toCommaDelimited(Object o)
Converts either a list or a iterable to a comma-delmited string, which can then be converted into a list for use by Javascript (and in particular Prototype.Array), |
static String |
truncate(String s,
int length)
Truncate provided string to specified length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JspFunctions()
| Method Detail |
|---|
public static boolean hasRole(User user,
String role)
user - NOT YET DOCUMENTEDrole - NOT YET DOCUMENTED
public static boolean hasCollectionRole(User user,
String role,
String collection)
user - the user ojectrole - role represented as a string (e.g., "manager")
public static boolean isAuthorized(String operation,
SessionBean sessionBean)
operation - NOT YET DOCUMENTEDsessionBean - NOT YET DOCUMENTED
public static String getNamedXPath(String pathName,
String xmlFormat,
FrameworkRegistry reg)
pathName - configured path name (from framework config)xmlFormat - speicified metadata framework (e.g., "adn")reg - the FrameworkRegistry
public static boolean isAuthorized(String operation,
SessionBean sessionBean,
String collection)
operation - NOT YET DOCUMENTEDsessionBean - NOT YET DOCUMENTEDcollection - NOT YET DOCUMENTED
public static boolean fileExists(String relativePath,
HttpServletRequest request)
relativePath - NOT YET DOCUMENTEDrequest - NOT YET DOCUMENTED
public static DcsDataDocReader getDcsDataDocReader(DocReader docReader)
docReader - Description of the Parameter
public static String truncate(String s,
int length)
s - string to truncatelength - truncation length
public static String getFullName(String username,
UserManager userManager)
username - a usernameuserManager - the UserManager
public static String getStatusLabel(String rawLabel,
String collection,
SessionBean sessionBean)
rawLabel - NOT YET DOCUMENTEDcollection - NOT YET DOCUMENTEDsessionBean - NOT YET DOCUMENTED
public static String getSetLabel(SetInfo setInfo)
setInfo - NOT YET DOCUMENTED
public static boolean listContains(List items,
String item)
items - NOT YET DOCUMENTEDitem - NOT YET DOCUMENTED
public static boolean arrayContains(String[] items,
String item)
items - NOT YET DOCUMENTEDitem - NOT YET DOCUMENTED
public static String toCommaDelimited(Object o)
Used when we want to convert a jsp object (List or Array) into a javascript variable.
o - NOT YET DOCUMENTED
public static String getDcsField(String fieldName,
DocReader docReader)
fieldName - Description of the ParameterdocReader - Description of the Parameter
public static String decodePath(String s)
e.g., /itemRecord/foo_1_/farb_4_ becomes /itemRecord/foo/farb
s - Description of the Parameter
public static String getLocalizedSchemaXML(String url)
url - NOT YET DOCUMENTED
public static List getPrompts(String xpath,
MetaDataFramework framework)
xpath - xpath for promptframework - the framework
public static AsnStandardsNode getAsnStandard(String asnId,
CATServiceHelper helper)
public static void main(String[] args)
args - The command line argumentspublic static void prtln(String s)
s - NOT YET DOCUMENTED
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||