m_currentuser, m_session
m_defaultWriter, m_logWriter, m_parametertable, m_timervalue
Constructor and Description |
---|
AdminManager()
Default constructor
|
AdminManager(String[] args)
The only constructor that is being used.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addGlobalToken(String key,
String string)
addGlobalToken() - add a new token to the globla table,
so that it can be used via the $$ replacement syntax.
|
protected void |
ensureNotTestMode()
ensureNotTestMode() - throw an exception if in testmode
|
AccessControlListAdmin |
getAccessControlListAdmin()
get the AccessControlList admin task manager
|
ApplicationObjectAdmin |
getApplicationObjectAdmin()
get the ApplicationObject admin task manager
|
AttributeValueAdmin |
getAttributeValueAdmin()
get the AttributeValue admin task manager
|
protected AttributeValue[] |
getAVArrayFromBooleanNamedTokenArray(LibrarySession sess,
String token,
String valueDelim,
String arrayvalueDelim)
getAVArrayFromBooleanNamedTokenArray() - get an AV[] from
token of the form {name1 : false, name2 : true}.
|
protected AttributeValue[] |
getAVArrayFromStringNamedTokenArray(LibrarySession sess,
String token,
String valueDelim,
String arrayvalueDelim)
getAVArrayFromStringNamedTokenArray() - get an AV[] from
token of the form {name1 : value1, name2 : value2}.
|
protected Boolean |
getBoolean(ParameterTable params,
String key)
getBoolean() - ParameterTable-like method, that also
replaces the value if it's an ArgumentSpec (i.e. a $$n spec).
|
protected boolean |
getBoolean(ParameterTable params,
String key,
boolean defValue)
getBoolean() - ParameterTable-like method, that also
replaces the value if it's an ArgumentSpec (i.e. a $$n spec).
|
protected AttributeValue |
getBooleanArrayAVFromToken(LibrarySession sess,
String token,
String valueDelim,
String arrayvalueDelim)
getBooleanArrayAVFromToken() - get an AV of type
Boolean array from a token.
|
protected AttributeValue |
getBooleanAVFromToken(LibrarySession sess,
String token,
String valueDelim)
getBooleanAVFromToken() - get an AV of type Boolean
from a token.
|
CategoryAdmin |
getCategoryAdmin()
get the CategoryAdmin task manager
|
ClassDomainAdmin |
getClassDomainAdmin()
get the ClassDomain admin task manager
|
ClassObjectAdmin |
getClassObjectAdmin()
get the ClassObject admin task manager
|
protected AttributeValue |
getClassObjectArrayAVFromToken(LibrarySession sess,
String token,
String valueDelim,
String arrayvalueDelim)
getClassObjectArrayAVFromToken() - get an AV of type
ClassObject array from a token.
|
ContextAdmin |
getContextAdmin()
get the Context admin task manager
|
protected AttributeValue |
getDateArrayAVFromToken(LibrarySession sess,
String token,
String valueDelim,
String arrayvalueDelim,
String valueFormatDelim)
getDateArrayAVFromToken() - get an AV of type
Date array from a token.
|
protected AttributeValue |
getDateAVFromToken(LibrarySession sess,
String token,
String valueDelim,
String valueformatDelim)
getDateAVFromToken() - get an AV of type Date
from a token.
|
protected Date |
getDateFromToken(String token,
String valueformatDelim)
getDateFromToken() - get Date from
a value of the form "datevalue ; dateformat".
|
DefinitionAdmin |
getDefinitionAdmin()
get the DefinitionAdmin admin task manager
|
protected LibraryObjectDefinition |
getDefinitionFromSectionParams(LibrarySession sess,
ParameterTable params)
getDefinitionFromSectionParams() - returns a cloned
LibraryObjectDefinition is
an explicit Definition specified in the Section.
|
DirectoryGroupAdmin |
getDirectoryGroupAdmin()
get the DirectoryGroup admin task manager
|
DirectoryServiceAdmin |
getDirectoryServiceAdmin()
get the DirectoryService admin task manager
|
DirectoryUserAdmin |
getDirectoryUserAdmin()
get the DirectoryUser admin task manager
|
DocumentAdmin |
getDocumentAdmin()
get the Documentadmin task manager
|
protected AttributeValue |
getDoubleArrayAVFromToken(LibrarySession sess,
String token,
String valueDelim,
String arrayvalueDelim,
String valueFormatDelim)
getDoubleArrayAVFromToken() - get an AV of type
Double array from a token.
|
protected AttributeValue |
getDoubleAVFromToken(LibrarySession sess,
String token,
String valueDelim,
String valueformatDelim)
getDoubleAVFromToken() - get an AV of type Date
from a token.
|
protected Double |
getDoubleFromToken(String token,
String valueformatDelim)
getDateFromToken() - get Double from
a value of the form "doublevalue ; dateformat".
|
ExtendedPermissionAdmin |
getExtendedPermissionAdmin()
get the ExtendedPermission admin task manager
|
FamilyAdmin |
getFamilyAdmin()
get the Family admin task manager
|
FolderAdmin |
getFolderAdmin()
get the Folder admin task manager
|
FormatAdmin |
getFormatAdmin()
get the Format admin task manager
|
protected Integer |
getInteger(ParameterTable params,
String key)
getInteger() - ParameterTable-like method, that also
replaces the value if it's an ArgumentSpec (i.e. a $$n spec).
|
protected int |
getInteger(ParameterTable params,
String key,
int defValue)
getInteger() - ParameterTable-like method, that also
replaces the value if it's an ArgumentSpec (i.e. a $$n spec).
|
protected AttributeValue |
getIntegerArrayAVFromToken(LibrarySession sess,
String token,
String valueDelim,
String arrayvalueDelim)
getIntegerArrayAVFromToken() - get an AV of type
Integer array from a token.
|
protected AttributeValue |
getIntegerAVFromToken(LibrarySession sess,
String token,
String valueDelim)
getIntegerAVFromToken() - get an AV of type Integer
from a token.
|
protected String |
getLineSeparator()
getLineSeparator() - returns the new line sequence
|
protected Long |
getLong(ParameterTable params,
String key)
getLong() - ParameterTable-like method, that also
replaces the value if it's an ArgumentSpec (i.e. a $$n spec).
|
protected long |
getLong(ParameterTable params,
String key,
long defValue)
getLong() - ParameterTable-like method, that also
replaces the value if it's an ArgumentSpec (i.e. a $$n spec).
|
protected AttributeValue |
getLongArrayAVFromToken(LibrarySession sess,
String token,
String valueDelim,
String arrayvalueDelim)
getLongArrayAVFromToken() - get an AV of type
Long array from a token.
|
protected AttributeValue |
getLongAVFromToken(LibrarySession sess,
String token,
String valueDelim)
getLongAVFromToken() - get an AV of type Long
from a token.
|
MediaAdmin |
getMediaAdmin()
get the Media admin task manager
|
MountPointAdmin |
getMountPointAdmin()
get the Mount point admin task manager
|
protected String |
getNameFromNamedToken(String token,
String valueDelim)
getNameFromNamedToken() - get name from a token of the
form "name : value".
|
protected String |
getNullToken()
getNullToken() - returns the current NULL token
|
protected String |
getOmitToken()
getOmitToken() - returns the current OMIT token
|
PermissionBundleAdmin |
getPermissionBundleAdmin()
get the PermissionBundle admin task manager
|
PolicyAdmin |
getPolicyAdmin()
get the Policy admin task manager
|
protected AttributeValue |
getPolicyArrayAVFromToken(LibrarySession sess,
String token,
String valueDelim,
String arrayvalueDelim)
getPolicyArrayAVFromToken() - get an AV of type
SystemObject array from a token.
|
PropertyBundleAdmin |
getPropertyBundleAdmin()
get the PropertyBundle admin task manager
|
SearchObjectAdmin |
getSearchObjectAdmin()
get the SearchObject admin task manager
|
SelectorObjectAdmin |
getSelectorObjectAdmin()
get the SelectorObject admin task manager
|
protected String |
getString(ParameterTable params,
String key)
getString() - ParameterTable-like method, that also
replaces the value if it's an ArgumentSpec (i.e. a $$n spec).
|
protected String |
getString(ParameterTable params,
String key,
String defValue)
getString() - ParameterTable-like method, that also
replaces the value if it's an ArgumentSpec (i.e. a $$n spec).
|
protected AttributeValue |
getStringArrayAVFromToken(LibrarySession sess,
String token,
String valueDelim,
String arrayvalueDelim)
getStringArrayAVFromToken() - get an AV of type
String array from a token.
|
protected AttributeValue |
getStringAVFromToken(LibrarySession sess,
String token,
String valueDelim)
getStringAVFromToken() - get an AV of type String
from a token.
|
protected String |
getStringExposeNull(ParameterTable params,
String key)
getStringExposeNull() - ParameterTable-like method, that also
replaces the value if it's an ArgumentSpec (i.e. a $$n spec).
|
String |
getStringId(LibraryObject obj)
Get an object's Id suitable for printing to canonlog.
|
protected String[] |
getStrings(ParameterTable params,
String key)
getStrings() - ParameterTable-like method, that also
replaces the value if it's an ArgumentSpec (i.e. a $$n spec).
|
protected String[] |
getStringsFromArrayToken(String token,
String arrayvalueDelim)
getStringsFromArrayToken() - get String array from
a value of the form "{value1, value2, value3}".
|
SystemLockObjectAdmin |
getSystemLockObjectAdmin()
get the SystemLockObject admin task manager
|
UserProfileAdmin |
getUserProfileAdmin()
get the UserProfile admin task manager
|
ValueDefaultAdmin |
getValueDefaultAdmin()
get the ValueDefault admin task manager
|
ValueDomainAdmin |
getValueDomainAdmin()
get the ValueDomain admin task manager
|
protected String |
getValueFromNamedToken(String token,
String valueDelim)
getValueFromNamedToken() - get value from a token of the
form "name : value".
|
protected String |
getValueFromNamedTokenExposeNull(String token,
String valueDelim)
getValueFromNamedTokenExposeNull() - get value from a token of the
form "name : value".
|
VersionDescriptionAdmin |
getVersionDescriptionAdmin()
get the VersionDescription admin task manager
|
protected VersionDescriptionDefinition |
getVersionDescriptionDefinitionFromSectionParams(LibrarySession sess,
ParameterTable params)
getVersionDescriptionDefinitionFromSectionParams() - returns a cloned
VersionDescriptionDefinition if one is indicated in the section
parameters, as indicated by a VersionDescriptionDefinition = xxx
specification.
|
VersionSeriesAdmin |
getVersionSeriesAdmin()
get the VersionSeries admin task manager
|
protected PublicObject |
identifyPublicObject(LibrarySession sess,
Long id,
String name,
String valueDefaultName,
String path,
String className,
String nameAttrname)
identifyPublicObject() - method used by several
PublicObject admin classes to identify an object
based on one of:
1.
|
protected PublicObject |
identifyPublicObjectByPath(LibrarySession sess,
String path)
identifyPublicObjectByPath() - method used by several
PublicObject admin classes to identify an object
based on the path of the publi object.
|
protected PublicObject[] |
identifyPublicObjects(LibrarySession sess,
Long id,
String name,
String className,
String nameAttrname)
identifyPublicObjects() - return set of PublicObjects
based on:
1.
|
protected boolean |
isValueNullFromNamedToken(String token,
String valueDelim)
isValueNullFromNamedToken() - return indication as to whehter a named token's
value is null.
|
static void |
main(String[] args)
This method starts the Test.
|
void |
performOperation()
performOperation() - called by run() to run the script.
|
protected void |
removeGlobalToken(String key)
removeGlobalToken() - remove a token from the global table.
|
protected String |
replaceIfArgumentSpec(String string)
replaceIfArgumentSpec() - replace String with the passed-parameter
value if the specified String conforms to the ArgumnetSpec
syntax.
|
protected String |
replaceIfArgumentSpecExposeNull(String string)
replaceIfArgumentSpecExposeNull() - similar to replaceIfArgumentSpec
but expose an explicit NULL seting as the NULL token, so that callre can distinguish
between NULL and not-set.
|
protected String |
replaceWithInputParamIfArgumentSpec(String string) |
void |
run() |
protected void |
setDefinitionFromSectionParams(LibrarySession sess,
ParameterTable params,
LibraryObjectDefinition def)
setDefinitionFromSectionParams() - calls main variant
of setDefinitionFromSectionParams with the forceNameUpper
parameter set to true.
|
protected void |
setDefinitionFromSectionParams(LibrarySession sess,
ParameterTable params,
LibraryObjectDefinition def,
boolean forceNameUpper)
setDefinitionFromSectionParams() - apply any attribuite settings
and other section settings to the specified LODef.
|
connect, Connect, connect, Connect, Connect, Connect, connect, Connect, connect, Connect, Disconnect, getCachePerformanceString, getCleartextCredential, getCleartextCredential, getConnectionPoolPerformanceString, getConnectOptions, getConnectOptions, getConnectOptions, getLocale, showCachePerformance, showConnectionPoolPerformance
getElapsedTime, getParameterTable, initTrace, log, log, logCurrentTimestamp, printStackTrace, setTimer, showElapsedTime
protected boolean m_ShowIdsInOutput
protected boolean m_ShowStackTraces
protected boolean m_TestMode
protected Transaction m_TestModeTransaction
protected Transaction m_TaskTransaction
protected String m_ValueDelimiter
protected String m_ArrayValueDelimiter
protected String m_ValueFormatDelimiter
protected String m_SectionParameterDelimiter
protected String m_DefaultSectionParameterDelimiter
protected String m_ArrayEnclosureBegin
protected String m_ArrayEnclosureEnd
protected String m_PermissionBundlePrefix
protected String m_ExtendedPermissionPrefix
protected String[] m_InputParamTokenList
protected Hashtable m_InputParamTokenTable
protected String[] m_CurrentTokenList
protected String m_NullValueToken
protected String m_OmitValueToken
protected Hashtable m_ActiveSections
protected boolean m_LastTaskSuccess
protected boolean m_ReturnOnError
protected boolean m_ExitOnError
protected IfsException m_LastException
protected boolean m_TraceSections
protected boolean m_SkipCreationIfExists
protected boolean m_SkipFreeIfNotExists
protected AccessControlListAdmin m_AclAdmin
protected ApplicationObjectAdmin m_ApplicationObjectAdmin
protected AttributeValueAdmin m_AttributeValueAdmin
protected CategoryAdmin m_CategoryAdmin
protected ClassDomainAdmin m_ClassDomainAdmin
protected ClassObjectAdmin m_ClassObjectAdmin
protected ContextAdmin m_ContextAdmin
protected DefinitionAdmin m_DefinitionAdmin
protected DirectoryServiceAdmin m_DirectoryServiceAdmin
protected DirectoryUserAdmin m_DirectoryUserAdmin
protected DirectoryGroupAdmin m_DirectoryGroupAdmin
protected DocumentAdmin m_DocumentAdmin
protected ExtendedPermissionAdmin m_ExtendedPermissionAdmin
protected FamilyAdmin m_FamilyAdmin
protected FolderAdmin m_FolderAdmin
protected FormatAdmin m_FormatAdmin
protected MediaAdmin m_MediaAdmin
protected MountPointAdmin m_MountPointAdmin
protected PermissionBundleAdmin m_PermissionBundleAdmin
protected PropertyBundleAdmin m_PropertyBundleAdmin
protected PolicyAdmin m_PolicyAdmin
protected SearchObjectAdmin m_SearchObjectAdmin
protected SelectorObjectAdmin m_SelectorObjectAdmin
protected SystemLockObjectAdmin m_SystemLockObjectAdmin
protected UserProfileAdmin m_UserProfileAdmin
protected ValueDefaultAdmin m_ValueDefaultAdmin
protected ValueDomainAdmin m_ValueDomainAdmin
protected VersionDescriptionAdmin m_VersionDescriptionAdmin
protected VersionSeriesAdmin m_VersionSeriesAdmin
public AdminManager(String[] args)
args
- commandline argumentspublic AdminManager()
public static void main(String[] args)
args
- the test arguments.public void run()
public String getStringId(LibraryObject obj) throws IfsException
obj
- Requested object.IfsException
public AccessControlListAdmin getAccessControlListAdmin()
public ApplicationObjectAdmin getApplicationObjectAdmin()
public AttributeValueAdmin getAttributeValueAdmin()
public CategoryAdmin getCategoryAdmin()
public ClassDomainAdmin getClassDomainAdmin()
public ClassObjectAdmin getClassObjectAdmin()
public ContextAdmin getContextAdmin()
public DefinitionAdmin getDefinitionAdmin()
public DirectoryGroupAdmin getDirectoryGroupAdmin()
public DirectoryUserAdmin getDirectoryUserAdmin()
public DirectoryServiceAdmin getDirectoryServiceAdmin()
public DocumentAdmin getDocumentAdmin()
public ExtendedPermissionAdmin getExtendedPermissionAdmin()
public FamilyAdmin getFamilyAdmin()
public FolderAdmin getFolderAdmin()
public FormatAdmin getFormatAdmin()
public MediaAdmin getMediaAdmin()
public MountPointAdmin getMountPointAdmin()
public PermissionBundleAdmin getPermissionBundleAdmin()
public PolicyAdmin getPolicyAdmin()
public PropertyBundleAdmin getPropertyBundleAdmin()
public SearchObjectAdmin getSearchObjectAdmin()
public SelectorObjectAdmin getSelectorObjectAdmin()
public SystemLockObjectAdmin getSystemLockObjectAdmin()
public UserProfileAdmin getUserProfileAdmin()
public ValueDefaultAdmin getValueDefaultAdmin()
public ValueDomainAdmin getValueDomainAdmin()
public VersionDescriptionAdmin getVersionDescriptionAdmin()
public VersionSeriesAdmin getVersionSeriesAdmin()
public void performOperation() throws IfsException
IfsException
protected LibraryObjectDefinition getDefinitionFromSectionParams(LibrarySession sess, ParameterTable params) throws IfsException
IfsException
protected VersionDescriptionDefinition getVersionDescriptionDefinitionFromSectionParams(LibrarySession sess, ParameterTable params) throws IfsException
IfsException
protected void setDefinitionFromSectionParams(LibrarySession sess, ParameterTable params, LibraryObjectDefinition def) throws IfsException
IfsException
protected void setDefinitionFromSectionParams(LibrarySession sess, ParameterTable params, LibraryObjectDefinition def, boolean forceNameUpper) throws IfsException
IfsException
protected AttributeValue getStringAVFromToken(LibrarySession sess, String token, String valueDelim) throws IfsException
IfsException
protected AttributeValue getBooleanAVFromToken(LibrarySession sess, String token, String valueDelim) throws IfsException
IfsException
protected AttributeValue getIntegerAVFromToken(LibrarySession sess, String token, String valueDelim) throws IfsException
IfsException
protected AttributeValue getLongAVFromToken(LibrarySession sess, String token, String valueDelim) throws IfsException
IfsException
protected AttributeValue getDoubleAVFromToken(LibrarySession sess, String token, String valueDelim, String valueformatDelim) throws IfsException
IfsException
protected AttributeValue getDateAVFromToken(LibrarySession sess, String token, String valueDelim, String valueformatDelim) throws IfsException
IfsException
protected AttributeValue getStringArrayAVFromToken(LibrarySession sess, String token, String valueDelim, String arrayvalueDelim) throws IfsException
IfsException
protected AttributeValue getBooleanArrayAVFromToken(LibrarySession sess, String token, String valueDelim, String arrayvalueDelim) throws IfsException
IfsException
protected AttributeValue getIntegerArrayAVFromToken(LibrarySession sess, String token, String valueDelim, String arrayvalueDelim) throws IfsException
IfsException
protected AttributeValue getLongArrayAVFromToken(LibrarySession sess, String token, String valueDelim, String arrayvalueDelim) throws IfsException
IfsException
protected AttributeValue getDoubleArrayAVFromToken(LibrarySession sess, String token, String valueDelim, String arrayvalueDelim, String valueFormatDelim) throws IfsException
IfsException
protected AttributeValue getDateArrayAVFromToken(LibrarySession sess, String token, String valueDelim, String arrayvalueDelim, String valueFormatDelim) throws IfsException
IfsException
protected AttributeValue getClassObjectArrayAVFromToken(LibrarySession sess, String token, String valueDelim, String arrayvalueDelim) throws IfsException
IfsException
protected AttributeValue getPolicyArrayAVFromToken(LibrarySession sess, String token, String valueDelim, String arrayvalueDelim) throws IfsException
IfsException
protected AttributeValue[] getAVArrayFromStringNamedTokenArray(LibrarySession sess, String token, String valueDelim, String arrayvalueDelim) throws IfsException
IfsException
protected AttributeValue[] getAVArrayFromBooleanNamedTokenArray(LibrarySession sess, String token, String valueDelim, String arrayvalueDelim) throws IfsException
IfsException
protected String getNullToken()
protected String getOmitToken()
protected String getLineSeparator()
protected void ensureNotTestMode() throws IfsException
IfsException
protected String getString(ParameterTable params, String key)
protected String getStringExposeNull(ParameterTable params, String key)
protected String replaceWithInputParamIfArgumentSpec(String string)
protected String getString(ParameterTable params, String key, String defValue)
protected String[] getStrings(ParameterTable params, String key)
protected Boolean getBoolean(ParameterTable params, String key)
protected boolean getBoolean(ParameterTable params, String key, boolean defValue)
protected Integer getInteger(ParameterTable params, String key)
protected int getInteger(ParameterTable params, String key, int defValue)
protected Long getLong(ParameterTable params, String key)
protected long getLong(ParameterTable params, String key, long defValue)
protected String replaceIfArgumentSpec(String string)
protected String replaceIfArgumentSpecExposeNull(String string)
protected void addGlobalToken(String key, String string)
protected void removeGlobalToken(String key) throws IfsException
IfsException
protected String getNameFromNamedToken(String token, String valueDelim) throws IfsException
IfsException
protected boolean isValueNullFromNamedToken(String token, String valueDelim) throws IfsException
IfsException
protected String getValueFromNamedToken(String token, String valueDelim) throws IfsException
IfsException
protected String getValueFromNamedTokenExposeNull(String token, String valueDelim) throws IfsException
IfsException
protected String[] getStringsFromArrayToken(String token, String arrayvalueDelim) throws IfsException
IfsException
protected Double getDoubleFromToken(String token, String valueformatDelim) throws IfsException
IfsException
protected Date getDateFromToken(String token, String valueformatDelim) throws IfsException
IfsException
protected PublicObject identifyPublicObject(LibrarySession sess, Long id, String name, String valueDefaultName, String path, String className, String nameAttrname) throws IfsException
IfsException
protected PublicObject[] identifyPublicObjects(LibrarySession sess, Long id, String name, String className, String nameAttrname) throws IfsException
IfsException
protected PublicObject identifyPublicObjectByPath(LibrarySession sess, String path) throws IfsException
IfsException
Copyright © 2023. All rights reserved.