@Deprecated
public interface AdministrationService
extends com.appiancorp.services.ContextSensitiveService
Methods of service classes can all throw the unchecked exception
ServiceException
if any
system-level error (for example, server failure) occurs, and will in general
throw a checked exception (InvalidXXXException
) when an entity
to be retrieved is inaccessible, instead of returning null
.
Exceptions to this paradigm (including the use of ResultList
as
described below) are noted. All checked exceptions extend
AppianException
.
It may be necessary to retrieve a subset of results as opposed to an entire
collection, and also to sort the subset by some property of the returned
object. "Paging" methods which return a
ResultPage
are provided in certain
instances for this purpose. The ResultPage
will contain the
sorted subset of results
(via Result.getResults()
), and the
total number of items in the available result set
(via ResultPage.getAvailableItems()
).
It may also be necessary to retrieve some results, even if all results
cannot be retrieved (for instance, some of the entities corresponding
to a list of entity IDs may no longer exist). Methods which return a
ResultList
are provided for this
purpose. The Result.getResults()
method in this case will return all results which can be retrieved. In
addition, there will be a list of result codes
(ResultList.getResultCodes()
) that
represent the successful retrieval of an entity, or, if the entity could
not be retrieved, the reason for the failure. See the CODE_XXX
constants in ResultList
for details.
Modifier and Type | Field and Description |
---|---|
static boolean |
activateUserSession$UPDATES
Deprecated.
|
static boolean |
commitUpdateUsernames$UPDATES
Deprecated.
|
static boolean |
findPortletTypes$UPDATES
Deprecated.
|
static boolean |
findPortletTypesPaging$UPDATES
Deprecated.
|
static boolean |
getApplicationName$UPDATES
Deprecated.
|
static boolean |
getMultiplePortletTypes$UPDATES
Deprecated.
|
static boolean |
getPortletType$UPDATES
Deprecated.
|
static boolean |
getPortletTypes$UPDATES
Deprecated.
|
static boolean |
getPortletTypesPaging$UPDATES
Deprecated.
|
static boolean |
getSiteCalendarSettings$UPDATES
Deprecated.
|
static boolean |
getSiteLocaleSettings$UPDATES
Deprecated.
|
static boolean |
getSiteTimeZoneSettings$UPDATES
Deprecated.
|
static boolean |
getSystemPageId$UPDATES
Deprecated.
|
static boolean |
getWorkspace$UPDATES
Deprecated.
|
static boolean |
getWSRPProducer$UPDATES
Deprecated.
|
static boolean |
getWSRPProducerFromURL$UPDATES
Deprecated.
|
static boolean |
getWSRPProducers$UPDATES
Deprecated.
|
static boolean |
getWSRPProducersPaging$UPDATES
Deprecated.
|
static boolean |
notifyGroupDeletion$UPDATES
Deprecated.
|
static boolean |
notifyGroupsDeletion$UPDATES
Deprecated.
|
static boolean |
notifyUserCreation$UPDATES
Deprecated.
|
static boolean |
notifyUsersCreation$UPDATES
Deprecated.
|
static boolean |
registerPortletType$UPDATES
Deprecated.
|
static boolean |
registerPortletTypes$UPDATES
Deprecated.
|
static boolean |
registerWSRPProducer$UPDATES
Deprecated.
|
static boolean |
reloadProperties$UPDATES
Deprecated.
|
static boolean |
rollbackUpdateUsernames$UPDATES
Deprecated.
|
static boolean |
setAdministratorGroup$UPDATES
Deprecated.
|
static boolean |
setSiteCalendarSettings$UPDATES
Deprecated.
|
static boolean |
setSiteLocaleSettings$UPDATES
Deprecated.
|
static boolean |
setSiteTimeZoneSettings$UPDATES
Deprecated.
|
static boolean |
updatePortletTypesState$UPDATES
Deprecated.
|
static boolean |
updatePortletTypeState$UPDATES
Deprecated.
|
static boolean |
updateUsernames$UPDATES
Deprecated.
|
static boolean |
validate$UPDATES
Deprecated.
|
static boolean |
validateGroupMembership$UPDATES
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
activateUserSession(java.lang.Long[] membership_,
java.lang.Long[] administration_)
Deprecated.
|
void |
commitUpdateUsernames()
Deprecated.
|
PortletType[] |
findPortletTypes(java.lang.String filterMask_,
java.lang.String stateFilter_)
Deprecated.
use
findPortletTypesPaging(String, String, int, int, Integer, Integer)
instead.
JSR-168 and WSRP Portlets have been deprecated, and no portlets of those types will be
returned by this method. |
ResultPage |
findPortletTypesPaging(java.lang.String filterMask_,
java.lang.String stateFilter_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
JSR-168 and WSRP Portlets have been deprecated, and no portlets of those types will be
returned by this method.
|
java.lang.String |
getApplicationName()
Deprecated.
not used
|
PortletType[] |
getMultiplePortletTypes(java.lang.String[] portletTypeDefinitions_)
Deprecated.
use
findPortletTypesPaging(java.lang.String, java.lang.String, int, int, java.lang.Integer, java.lang.Integer) or getPortletTypesPaging(int, int, java.lang.Integer, java.lang.Integer) instead
JSR-168 and WSRP Portlets have been deprecated, and calls to this method for those types will
throw InvalidPortletTypeDefinitionException . |
PortletType |
getPortletType(java.lang.String portletTypeDefinition_)
Deprecated.
JSR-168 and WSRP Portlets have been deprecated, and calls to this method for those types will
throw
InvalidPortletTypeDefinitionException . |
PortletType[] |
getPortletTypes()
Deprecated.
use
getPortletTypesPaging(int, int, Integer, Integer) instead
JSR-168 and WSRP Portlets have been deprecated, and no portlets of those types will be
returned by this method |
ResultPage |
getPortletTypesPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
JSR-168 and WSRP Portlets have been deprecated, and no portlets of those types will be
returned by this method.
|
SiteCalendarSettings |
getSiteCalendarSettings()
Deprecated.
Gets the calendar settings for the administration server
Use
GlobalizationService.getSiteCalendarSettings() to get the
calendar settings of the entire site. |
SiteLocaleSettings |
getSiteLocaleSettings()
Deprecated.
Returns the site locale settings for the administration server
Use
GlobalizationService.getSiteLocaleSettings() to get site locale
setting for the entire site. |
SiteTimeZoneSettings |
getSiteTimeZoneSettings()
Deprecated.
Gets the site timezone settings for the adminstration server
Use
GlobalizationService.getSiteTimeZoneSettings() to get the
timezone settings of the entire site. |
java.lang.Long |
getSystemPageId(java.lang.String systemPageUuid)
Deprecated.
Gets the system page id corresponding to the given UUID.
|
java.lang.String[] |
getWorkspace()
Deprecated.
this information is no longer available
|
PersistedWSRPProducer |
getWSRPProducer(java.lang.Long producerId_)
Deprecated.
WSRP Producers have been removed in Appian 22.2. This method will be removed in a future
release, and will now throw
InvalidWSRPProducerException |
PersistedWSRPProducer |
getWSRPProducerFromURL(java.lang.String producerURL_)
Deprecated.
WSRP Producers have been removed in Appian 22.2. This method will be removed in a future
release, and will now throw
InvalidWSRPProducerURLException |
PersistedWSRPProducer[] |
getWSRPProducers(java.lang.Long[] producerIds_)
Deprecated.
WSRP Producers have been removed in Appian 22.2. This method will be removed in a future
release, and will now throw
InvalidWSRPProducerException |
ResultPage |
getWSRPProducersPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
WSRP Producers have been removed in Appian 22.2. This method will be removed in a future
release, and will now return an empty ResultPage.
|
void |
notifyGroupDeletion(java.lang.Long groupId_)
Deprecated.
Notifies that the specified group has been deleted
and no references to it should therefore exist in
the portal application
|
void |
notifyGroupsDeletion(java.lang.Long[] groupIds_)
Deprecated.
Notifies that the specified groups have been deleted
and no references to them should therefore exist in
the portal application
|
void |
notifyUserCreation(java.lang.String username_)
Deprecated.
done automatically by UserService.createUser
|
void |
notifyUsersCreation(java.lang.String[] usernames_)
Deprecated.
Notifies the portal application that these users have been created.
|
void |
registerPortletType(PortletType portletType_)
Deprecated.
JSR-168 and WSRP Portlets have been deprecated, and calls to this method for those types will
be ignored.
|
void |
registerPortletTypes(PortletType[] portletTypes_)
Deprecated.
JSR-168 and WSRP Portlets have been deprecated, and calls to this method for those types will
be ignored.
|
java.lang.Long |
registerWSRPProducer(PersistedWSRPProducer producer_)
Deprecated.
WSRP Producers have been removed in Appian 22.2. This method will be removed in a future
release, and will now throw
InvalidWSRPProducerException |
void |
reloadProperties()
Deprecated.
reloading properties is now automatic, so this call is now unnecessary and does nothing.
|
void |
rollbackUpdateUsernames()
Deprecated.
|
void |
setAdministratorGroup(java.lang.Long id_)
Deprecated.
Sets the specified group as the administrative group for the Portal
application.
|
void |
setSiteCalendarSettings(SiteCalendarSettings settings_)
Deprecated.
Registers the calendar setting for the administration server.
|
void |
setSiteLocaleSettings(SiteLocaleSettings settings_)
Deprecated.
Registers the site local settings for the administration server.
|
void |
setSiteTimeZoneSettings(SiteTimeZoneSettings timezoneSettings_)
Deprecated.
Registers the site timezone settings for the administration server.
|
void |
updatePortletTypesState(java.lang.String[] portletTypeDefinitions_,
java.lang.String newState_)
Deprecated.
JSR-168 and WSRP Portlets have been deprecated, and calls for those PortletTypes will be
ignored by this method
|
void |
updatePortletTypeState(java.lang.String portletTypeDefinition_,
java.lang.String newState_)
Deprecated.
JSR-168 and WSRP Portlets have been deprecated, and calls for those PortletTypes will be
ignored by this method
|
void |
updateUsernames(java.lang.String[] oldUsernames_,
java.lang.String[] newUsernames_,
long maxExpirationTimeInSeconds_)
Deprecated.
|
java.lang.String |
validate()
Deprecated.
use the
validate diagnostic script instead |
boolean |
validateGroupMembership(java.lang.Long[] memGroupIds_,
java.lang.Long[] admGroupIds_)
Deprecated.
No longer necessary with credential system
|
static final boolean registerPortletType$UPDATES
static final boolean registerPortletTypes$UPDATES
static final boolean getPortletType$UPDATES
static final boolean getPortletTypes$UPDATES
static final boolean getPortletTypesPaging$UPDATES
static final boolean getMultiplePortletTypes$UPDATES
static final boolean findPortletTypes$UPDATES
static final boolean findPortletTypesPaging$UPDATES
static final boolean updatePortletTypeState$UPDATES
static final boolean updatePortletTypesState$UPDATES
static final boolean registerWSRPProducer$UPDATES
static final boolean getWSRPProducersPaging$UPDATES
static final boolean getWSRPProducer$UPDATES
static final boolean getWSRPProducers$UPDATES
static final boolean getWSRPProducerFromURL$UPDATES
static final boolean notifyGroupDeletion$UPDATES
static final boolean notifyGroupsDeletion$UPDATES
static final boolean setAdministratorGroup$UPDATES
static final boolean activateUserSession$UPDATES
static final boolean notifyUserCreation$UPDATES
static final boolean notifyUsersCreation$UPDATES
static final boolean getApplicationName$UPDATES
static final boolean getWorkspace$UPDATES
static final boolean validateGroupMembership$UPDATES
static final boolean updateUsernames$UPDATES
static final boolean commitUpdateUsernames$UPDATES
static final boolean rollbackUpdateUsernames$UPDATES
static final boolean reloadProperties$UPDATES
static final boolean validate$UPDATES
static final boolean getSiteLocaleSettings$UPDATES
static final boolean setSiteLocaleSettings$UPDATES
static final boolean getSiteTimeZoneSettings$UPDATES
static final boolean setSiteTimeZoneSettings$UPDATES
static final boolean getSiteCalendarSettings$UPDATES
static final boolean setSiteCalendarSettings$UPDATES
static final boolean getSystemPageId$UPDATES
@Deprecated void registerPortletType(PortletType portletType_)
PortletType
.
If the PortletType
is already registered
(i.e. a PortletType
with the same definition
already exists) the properties of the specified PortletType
are updated with the new values.
The minimum properties which must be populated in order to register a
PortletType
are definition
and state
.
The definition
property should be a non empty string.
The state
property can only take one of the following values:
If these two properties fail to meet these requirements the respective
portletType
won't be registered or updated.
Additional constraints:
name
property is null, an empty string will be used instead.editable
property is null, false will be used instead.extensions
must have a non null key. If one of the keys
is null
the PortletType
will get registered or updated
using an empty set of extensions
.portletType_
- the new PortletType
or the
PortletType
to updatejava.lang.NullPointerException
- if portletType_
is null;
this exception is not thrown if any of the properties is nullServiceException
- if any system-level error occurs@Deprecated void registerPortletTypes(PortletType[] portletTypes_)
PortletType
objects.
If the PortletType
is already registered
(i.e. a PortletType
with the same definition
already exists) the properties of the specified PortletType
are updated with the new values.
The minimum properties which must be populated in order to register a
PortletType
are definition
and state
.
The definition
property should be a non empty string.
The state
property can only take one of the following values:
If these two properties fail to meet these requirements the respective
PortletType
won't be registered or updated. This won't prevent
the other valid PortletType
objects in the list from being
registered or updated.
Additional constraints:
name
property is null, an empty string will be used instead.editable
property is null, false will be used instead.extensions
must have a non null key. If one of the keys
is null
the PortletType
will get registered or updated
using an empty set of extensions
.portletTypes_
- the list of new PortletType
objects or the PortletType
objects to updatejava.lang.NullPointerException
- if portletTypes_
is null;
this exception is not thrown if any of the properties is nullServiceException
- if any system-level error occurs or if the list contains a
null valuePortletType
@Deprecated PortletType getPortletType(java.lang.String portletTypeDefinition_) throws InvalidPortletTypeDefinitionException
InvalidPortletTypeDefinitionException
.portletTypeDefinition_
- the definition of a portlet typeServiceException
- if any system-level error occursInvalidPortletTypeDefinitionException
@Deprecated PortletType[] getPortletTypes()
getPortletTypesPaging(int, int, Integer, Integer)
instead
JSR-168 and WSRP Portlets have been deprecated, and no portlets of those types will be
returned by this methodServiceException
- if any system-level error occursregisterPortletType(com.appiancorp.suiteapi.portal.PortletType)
@Deprecated ResultPage getPortletTypesPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_)
startIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. use of
Constants.COUNT_ALL
will
result in the entire collection being returned, but this is
STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in
PortletType
sortOrder_
- Constants.SORT_ORDER_ASCENDING
for sorting results in ascending order,
Constants.SORT_ORDER_DESCENDING
for sorting results in descending orderResultPage
containing the list of
PortletType
objects corresponding to the
registered portlet typesServiceException
- if any system-level error occurs@Deprecated PortletType[] getMultiplePortletTypes(java.lang.String[] portletTypeDefinitions_) throws java.lang.NullPointerException, InvalidPortletTypeDefinitionException
findPortletTypesPaging(java.lang.String, java.lang.String, int, int, java.lang.Integer, java.lang.Integer)
or getPortletTypesPaging(int, int, java.lang.Integer, java.lang.Integer)
instead
JSR-168 and WSRP Portlets have been deprecated, and calls to this method for those types will
throw InvalidPortletTypeDefinitionException
.portletTypeDefinitions_
- the list of portlet type definitions to retrieveServiceException
- if any system-level error occursjava.lang.NullPointerException
InvalidPortletTypeDefinitionException
@Deprecated PortletType[] findPortletTypes(java.lang.String filterMask_, java.lang.String stateFilter_) throws java.lang.NullPointerException, InvalidPortletTypeStateFilterException
findPortletTypesPaging(String, String, int, int, Integer, Integer)
instead.
JSR-168 and WSRP Portlets have been deprecated, and no portlets of those types will be
returned by this method.filterMask_
- the mask to use for the definition field, use one of the FILTER_*
constants from PortletType
stateFilter_
- which state(s) to include - use one of the STATE_* constants
from PortletType
. A null means either.java.lang.NullPointerException
InvalidPortletTypeStateFilterException
@Deprecated ResultPage findPortletTypesPaging(java.lang.String filterMask_, java.lang.String stateFilter_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws java.lang.NullPointerException, InvalidPortletTypeStateFilterException
filterMask_
- the mask to use for the definition field, use one of the FILTER_*
constants from PortletType
stateFilter_
- which state(s) to include - use one of the STATE_* constants
from PortletType
or null for either.startIndex_
- the index into the collection of total results at
which to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. Negative numbers will
result in the entire collection being returned, but this is discouraged.sortProperty_
- the property by which the results should be sorted.
This should be one of the SORT_BY_XXX
constants
in PortletType
.sortOrder_
- the order in which to sort the results. This should be either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
.java.lang.NullPointerException
InvalidPortletTypeStateFilterException
@Deprecated void updatePortletTypeState(java.lang.String portletTypeDefinition_, java.lang.String newState_) throws java.lang.NullPointerException, InvalidPortletTypeDefinitionException, InvalidPortletTypeStateException
portletTypeDefinition_
- the Portlet type definition of the portlet typenewState_
- the new state - use one of the STATE_* constants
from PortletType
ServiceException
- if any system-level error occursjava.lang.NullPointerException
InvalidPortletTypeDefinitionException
InvalidPortletTypeStateException
@Deprecated void updatePortletTypesState(java.lang.String[] portletTypeDefinitions_, java.lang.String newState_) throws java.lang.NullPointerException, InvalidPortletTypeDefinitionException, InvalidPortletTypeStateException
portletTypeDefinitions_
- the list of portlet type definitions to updatenewState_
- the new state - use one of the STATE_* constants
from PortletType
ServiceException
- if any system-level error occursjava.lang.NullPointerException
InvalidPortletTypeDefinitionException
InvalidPortletTypeStateException
@Deprecated java.lang.Long registerWSRPProducer(PersistedWSRPProducer producer_) throws DuplicateWSRPProducerURLException, InvalidWSRPProducerException, java.lang.NullPointerException
InvalidWSRPProducerException
producer_
- The PersistedWSRPProducer object that will be created or updatedDuplicateWSRPProducerURLException
- if the Producer URL already exists in
the systemInvalidWSRPProducerException
- if the id of the producer object is invalidjava.lang.NullPointerException
- if the Producer URL is null or empty@Deprecated ResultPage getWSRPProducersPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_)
startIndex_
- the index into the collection of total results at
which to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return. Negative numbers will
result in the entire collection being returned, but this is discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in
PersistedWSRPProducer
sortOrder_
- Constants.SORT_ORDER_ASCENDING
for sorting results in ascending order,
Constants.SORT_ORDER_DESCENDING
for sorting results in descending order@Deprecated PersistedWSRPProducer getWSRPProducer(java.lang.Long producerId_) throws InvalidWSRPProducerException, java.lang.NullPointerException
InvalidWSRPProducerException
producerId_
- the id of the producerInvalidWSRPProducerException
- if the specified Producer id is invalidjava.lang.NullPointerException
- if a null Producer id is specified@Deprecated PersistedWSRPProducer[] getWSRPProducers(java.lang.Long[] producerIds_) throws InvalidWSRPProducerException, java.lang.NullPointerException
InvalidWSRPProducerException
producerIds_
- the ids of the producersInvalidWSRPProducerException
- if any of the specified Producer ids are invalidjava.lang.NullPointerException
- if any of the specified Producer ids are null@Deprecated PersistedWSRPProducer getWSRPProducerFromURL(java.lang.String producerURL_) throws InvalidWSRPProducerURLException, java.lang.NullPointerException
InvalidWSRPProducerURLException
producerURL_
- the URL that the producer should haveInvalidWSRPProducerURLException
- if there are not Producers with the specified
URLjava.lang.NullPointerException
- if an empty or null Producer URL is specifiedvoid notifyGroupDeletion(java.lang.Long groupId_) throws java.lang.NullPointerException, PrivilegeException
groupId_
- the ID of the group that has been deletedPrivilegeException
- if the specified group is the portal
administrator groupjava.lang.NullPointerException
- if groupId_
is null
ServiceException
- if any system-level error occurssetAdministratorGroup(java.lang.Long)
void notifyGroupsDeletion(java.lang.Long[] groupIds_) throws PrivilegeException, java.lang.NullPointerException
groupIds_
- the IDs of the groups that have been deletedPrivilegeException
- if any of the specified groups is the
portal administrator groupjava.lang.NullPointerException
- if groupIds_
is null
ServiceException
- if any system-level error occurssetAdministratorGroup(java.lang.Long)
void setAdministratorGroup(java.lang.Long id_) throws java.lang.NullPointerException
id_
- the ID of the group to be set as administrator groupjava.lang.NullPointerException
- if id_
is null
ServiceException
- if any system-level error occurs@Deprecated java.lang.Void activateUserSession(java.lang.Long[] membership_, java.lang.Long[] administration_) throws InvalidAnonymousUserException, InvalidUserException, java.lang.NullPointerException
membership_
- the list of group IDs of groups of which the user is a
memberadministration_
- the list of group IDs of groups of which the user
has administrative rightsInvalidAnonymousUserException
- if the user calling this method is
anonymous, but anonymous access has not been enabledInvalidUserException
- if the user calling this method does not existjava.lang.NullPointerException
- if any of the input arrays are
null
ServiceException
- if any system-level error occurs@Deprecated void notifyUserCreation(java.lang.String username_) throws java.lang.NullPointerException
UserService.createUser(com.appiancorp.suiteapi.personalization.User)
.
The caller should take care to only pass the valid username of a user
that has been previously created in UserService
.
username_
- the username of the created userjava.lang.NullPointerException
- if username_
is null
or emptyServiceException
- if any system-level error occursvoid notifyUsersCreation(java.lang.String[] usernames_) throws java.lang.NullPointerException
UserService.createUser(com.appiancorp.suiteapi.personalization.User)
or
UserService.createUsers(com.appiancorp.suiteapi.personalization.User[])
.
The caller should take care to only pass the valid username of a user
that has been previously created in UserService
.
usernames_
- the usernames of the created usersjava.lang.NullPointerException
- if the passed usernames_
array
or any of its elements is null
or emptyServiceException
- if any system-level error occurs@Deprecated java.lang.String getApplicationName()
ServiceException
- if any system-level error occurs@Deprecated java.lang.String[] getWorkspace()
ServiceException
- if any system-level error occurs@Deprecated boolean validateGroupMembership(java.lang.Long[] memGroupIds_, java.lang.Long[] admGroupIds_) throws InvalidAnonymousUserException, InvalidUserException
memGroupIds_
- Groups for which the User is a memberadmGroupIds_
- Groups for which the User is an administratorInvalidAnonymousUserException
- if the user calling this method is
anonymous, but anonymous access has not been enabledInvalidUserException
- if the user calling this method does not existjava.lang.NullPointerException
- if any of the input arrays are null
ServiceException
- if any system-level error occurs@Deprecated void updateUsernames(java.lang.String[] oldUsernames_, java.lang.String[] newUsernames_, long maxExpirationTimeInSeconds_) throws java.lang.IllegalArgumentException, PrivilegeException, DuplicateNameException
UserService.renameUsersByUuid(java.lang.String[], java.lang.String[])
UserService.renameUsersByUuid(java.lang.String[], java.lang.String[])
Updates a list of old usernames to new usernames.
If successful, this method must be followed by
commitUpdateUsernames()
. After commitUpdateUsernames
has been called, the old usernames will still be active, but will
expire after the interval specified by
maxExpirationTimeInSeconds_
; if updateUsernames
is successful but commitUpdateUsernames
is not called, the
new usernames will not become active.
If unsuccessful, this method should be followed by
rollbackUpdateUsernames()
. This will simply free memory dedicated
to mapping old usernames to new usernames.
oldUsernames_
- the usernames to be updatednewUsernames_
- the usernames to which the old usernames will be
updatedmaxExpirationTimeInSeconds_
- the interval, in seconds, after
commitUpdateUsernames
has been called, after which
the old usernames will expire. If this parameter is zero or a
negative value the old usernames will expire instantly.
After expiration, the old usernames will no longer be valid.java.lang.IllegalArgumentException
- if the length of
oldUsernames_
is not the same as the length of
newUsernames_
.PrivilegeException
- if the current user is not a system
administratorDuplicateNameException
- if any oldUsernames_
or
newUsernames_
contain any duplicates, or if an old
username is being updated to a username that already existsServiceException
- if any system-level error occurs@Deprecated void commitUpdateUsernames()
UserService.renameUsersByUuid(java.lang.String[], java.lang.String[])
UserService.renameUsersByUuid(java.lang.String[], java.lang.String[])
Commits an update of usernames.
This method should be preceded by a call to
updateUsernames(String[], String[], long)
. After the commit, the
old usernames will be temporarily active, and will expire after the
interval specified by maxExpirationTimeInSeconds_
; if
commitUpdateUsernames
is not called, the
new usernames will not become active.
ServiceException
- if any system-level error occurs@Deprecated void rollbackUpdateUsernames()
UserService.renameUsersByUuid(java.lang.String[], java.lang.String[])
UserService.renameUsersByUuid(java.lang.String[], java.lang.String[])
Rolls back an update of usernames.
This method should be called if
updateUsernames(String[], String[], long)
is unsuccessful. The
rollback will simply free memory dedicated to mapping old usernames to
new usernames.
ServiceException
- if any system-level error occurs@Deprecated void reloadProperties()
ServiceException
- if any system-level error occurs@Deprecated java.lang.String validate()
validate
diagnostic script insteadServiceException
- if any system-level error occursSiteLocaleSettings getSiteLocaleSettings()
GlobalizationService.getSiteLocaleSettings()
to get site locale
setting for the entire site.void setSiteLocaleSettings(SiteLocaleSettings settings_) throws PrivilegeException
GlobalizationService.setSiteLocaleSettings(SiteLocaleSettings)
to
register site locale setting for entire site.
All the properties in the SiteLocaleSettings
parameter must be
populated.
The locale settings that have already been set are going to be preserved.
It is required that the primary locale
is present and enabled in the array of locale settings
.PrivilegeException
- if the current user is not a portal
administratorSiteTimeZoneSettings getSiteTimeZoneSettings()
GlobalizationService.getSiteTimeZoneSettings()
to get the
timezone settings of the entire site.void setSiteTimeZoneSettings(SiteTimeZoneSettings timezoneSettings_)
GlobalizationService.setSiteTimeZoneSettings(SiteTimeZoneSettings)
to set the timezone settings for the entire site.SiteCalendarSettings getSiteCalendarSettings()
GlobalizationService.getSiteCalendarSettings()
to get the
calendar settings of the entire site.void setSiteCalendarSettings(SiteCalendarSettings settings_)
GlobalizationService.setSiteCalendarSettings(SiteCalendarSettings)
to set the calendar settings for the entire site.java.lang.Long getSystemPageId(@ConvertWith(value=com.appiancorp.kougar.mapper.parameters.UuidParameterConverter.class) java.lang.String systemPageUuid)
"SYSTEM_PAGE_PORTAL_HOME" "SYSTEM_PAGE_PORTAL_LICENSE_ADMINISTRATION" "SYSTEM_PAGE_PORTAL_SERVICES" "SYSTEM_PAGE_PORTAL_PROCESS_KOUGAR_MONITOR" "SYSTEM_PAGE_PORTAL_REAL_TIME_MONITOR" "SYSTEM_PAGE_PORTAL_START_PAGE_SETTINGS" "SYSTEM_PAGE_PORTAL_CREATE_AN_ADMIN_PAGE" "SYSTEM_PAGE_PORTAL_SET_WORKING_TIME" "SYSTEM_PAGE_PORTAL_NAVIGATION_BUTTONS" "SYSTEM_PAGE_PORTAL_DATA_TYPES" "SYSTEM_PAGE_PROCESS_MODEL_DASHBOARD" "SYSTEM_PAGE_PROCESS_DASHBOARD"
systemPageUuid
- one of the UUIDs listed aboveCopyright © 2003-2024 Appian Corporation. All Rights Reserved.