ContentService
instead.@Deprecated
public interface AdministrationService
extends com.appiancorp.services.ContextSensitiveService
This interface provides services for other applications using methods related to collaboration administration.
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 |
changePartitionPaths$UPDATES
Deprecated.
|
static boolean |
commitUpdateUsernames$UPDATES
Deprecated.
|
static boolean |
getApplicationName$UPDATES
Deprecated.
|
static boolean |
getSystemFolderId$UPDATES
Deprecated.
|
static boolean |
getUserSpace$UPDATES
Deprecated.
|
static boolean |
getUserSpaceUsage$UPDATES
Deprecated.
|
static boolean |
getWorkspace$UPDATES
Deprecated.
|
static boolean |
insertUser$UPDATES
Deprecated.
|
static boolean |
insertUsersBulk$UPDATES
Deprecated.
|
static boolean |
notifyGroupDeletion$UPDATES
Deprecated.
|
static boolean |
notifyGroupsDeletion$UPDATES
Deprecated.
|
static boolean |
reloadProperties$UPDATES
Deprecated.
|
static boolean |
rollbackUpdateUsernames$UPDATES
Deprecated.
|
static boolean |
setAdministratorGroup$UPDATES
Deprecated.
|
static boolean |
setUserSpaceUsage$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 |
changePartitionPaths(java.lang.String originalPath,
java.lang.String newPath)
Deprecated.
Changes where collaboration files are stored from one path to another.
|
void |
commitUpdateUsernames()
Deprecated.
|
java.lang.String |
getApplicationName()
Deprecated.
Gets the name of the application on which this service is running.
|
java.lang.Long |
getSystemFolderId(java.lang.String name)
Deprecated.
Returns the folder id for a built-in system folder
from among the following:
image_folder_id
leader_message_channel_image_folder_id
priority_image_folder_id
indicator_image_folder_id
This is a small wrapper on Content's getSystemId, but returns the content
id as a folder id.
|
UserSpace |
getUserSpace()
Deprecated.
User quotas have been removed. This method will always show that the user has unlimited space.
|
UserSpace |
getUserSpaceUsage()
Deprecated.
User quotas have been removed. This method will always show that the user has unlimited space.
|
java.lang.String[] |
getWorkspace()
Deprecated.
Gets the current memory profile for the workspace.
|
void |
insertUser(java.lang.String username_,
java.sql.Timestamp whenCreated_)
Deprecated.
Adds user with unique identifier username into Collaboration.
|
void |
insertUsersBulk(java.lang.String[] usernames_)
Deprecated.
Adds users with unique identifier usernames into Collaboration.
|
void |
notifyGroupDeletion(java.lang.Long groupId_)
Deprecated.
Notifies the collaboration application that the specified group has been
deletedand no references to it should therefore exist in
collaboration.
|
void |
notifyGroupsDeletion(java.lang.Long[] groupIds_)
Deprecated.
Notifies the collaboration application that the specified groups have been
deleted and no references to them should therefore exist in
collaboration.
|
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 Collaboration
application.
|
void |
setUserSpaceUsage(java.lang.String username_,
java.lang.Long mbytes_)
Deprecated.
User quotas have been removed. Calls to this method will be ignored.
|
void |
updateUsernames(java.lang.String[] oldUsernames_,
java.lang.String[] newUsernames_,
long maxExpirationTimeInSeconds_)
Deprecated.
|
java.lang.String |
validate()
Deprecated.
Runs validation tests against the database to check whether it is corrupt,
and returns a line-separated list of validation results
|
boolean |
validateGroupMembership(java.lang.Long[] memGroupIds_,
java.lang.Long[] admGroupIds_)
Deprecated.
|
static final boolean getUserSpaceUsage$UPDATES
static final boolean getUserSpace$UPDATES
static final boolean setUserSpaceUsage$UPDATES
static final boolean notifyGroupDeletion$UPDATES
static final boolean notifyGroupsDeletion$UPDATES
static final boolean activateUserSession$UPDATES
static final boolean insertUser$UPDATES
static final boolean insertUsersBulk$UPDATES
static final boolean setAdministratorGroup$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 changePartitionPaths$UPDATES
static final boolean reloadProperties$UPDATES
static final boolean validate$UPDATES
static final boolean getSystemFolderId$UPDATES
@Deprecated UserSpace getUserSpaceUsage() throws InvalidUserException
UserSpace
object representing the
physical disk space usage of the current user.InvalidUserException
- if the user calling this method does not existServiceException
- if any system-level error occurs@Deprecated UserSpace getUserSpace() throws InvalidUserException
UserSpace
object representing the
physical disk space usage of the current user.InvalidUserException
- if the user calling this method does not existServiceException
- if any system-level error occurs@Deprecated void setUserSpaceUsage(java.lang.String username_, java.lang.Long mbytes_) throws InvalidUserException
username_
- the username of the user for which to set disk spacembytes_
- the amount of space in MbytesInvalidUserException
- if the user specified by the given username
does not existServiceException
- if any system-level error occursvoid notifyGroupDeletion(java.lang.Long groupId_)
GroupService.deleteGroup(java.lang.Long)
has been called.groupId_
- the ID of the group that has been deletedServiceException
- if any system-level error occursvoid notifyGroupsDeletion(java.lang.Long[] groupIds_)
GroupService.deleteGroup(java.lang.Long)
has been called.groupIds_
- the IDs of the groups that have been deletedServiceException
- if any system-level error occurs@Deprecated java.lang.Void activateUserSession(java.lang.Long[] membership_, java.lang.Long[] administration_) throws InvalidUserException
membership_
- the list of groups of which the user is a memberadministration_
- the list of groups on which the user has
administrative rightsInvalidUserException
- if the user calling this method does not existServiceException
- if any system-level error occursvoid insertUser(java.lang.String username_, java.sql.Timestamp whenCreated_) throws InvalidDataFormatException
UserService.createUser(com.appiancorp.suiteapi.personalization.User)
username_
- username of the user to add to collaborationwhenCreated_
- the current system timeInvalidDataFormatException
- if the username is null or invalid.ServiceException
- if any system-level error occursvoid insertUsersBulk(java.lang.String[] usernames_) throws java.lang.NullPointerException
UserService.createUsers(com.appiancorp.suiteapi.personalization.User[])
usernames_
- usernames of the users to insert into collaborationServiceException
- if any system-level error occursjava.lang.NullPointerException
void setAdministratorGroup(java.lang.Long id_) throws InvalidGroupException
id_
- the ID of the group to be set as admin groupInvalidGroupException
- if the ID is null
ServiceException
- if any system-level error occursjava.lang.String getApplicationName()
ServiceException
- if any system-level error occursjava.lang.String[] getWorkspace()
ServiceException
- if any system-level error occurs@Deprecated boolean validateGroupMembership(java.lang.Long[] memGroupIds_, java.lang.Long[] admGroupIds_) throws InvalidUserException
memGroupIds_
- Groups for which the User is a memberadmGroupIds_
- Groups for which the User is an administratorInvalidUserException
- if the user calling this method does not existServiceException
- 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 occursvoid changePartitionPaths(java.lang.String originalPath, java.lang.String newPath)
originalPath
- The path where collaboration files were previously
stored.newPath
- The path where collaboration files will now be stored.ServiceException
- if any system-level error occurs@Deprecated void reloadProperties()
ServiceException
- if any system-level error occursjava.lang.String validate()
ServiceException
- if any system-level error occursjava.lang.Long getSystemFolderId(java.lang.String name) throws InvalidFolderException
name
- A case-insensitive system nameInvalidFolderException
- if the symbolic folder is not registered.Copyright © 2003-2024 Appian Corporation. All Rights Reserved.