Class GroupManagementServiceClientImpl
java.lang.Object
com.lexmark.saperion.client.implementation.administration.GroupManagementServiceClientImpl
- All Implemented Interfaces:
GroupManagementServiceClient
public class GroupManagementServiceClientImpl
extends Object
implements GroupManagementServiceClient
This is the default implementation of
GroupManagementServiceClient.- Author:
- jschwarz
-
Constructor Summary
ConstructorsConstructorDescriptionGroupManagementServiceClientImpl(com.lexmark.saperion.administration.GroupManagementService groupManagementService) -
Method Summary
Modifier and TypeMethodDescriptioncom.lexmark.saperion.administration.GroupReferenceTypecreateGroup(com.lexmark.saperion.administration.GroupPropertiesType properties) This method creates a new group with the given properties and returns a reference to it.com.lexmark.saperion.administration.GroupReferenceTypecreateGroup(String shortName) This method is a shorthand toGroupManagementServiceClient.createGroup(String, String, String).com.lexmark.saperion.administration.GroupReferenceTypecreateGroup(String shortName, String fullName, String description) This method creates a new group with the given properties and returns a reference to it.resolve(com.lexmark.saperion.administration.GroupReferenceType reference) This method returns an administration client for the group with the given reference.resolveName(String groupName) This method returns an administration client for the group with the given name.SearchClient<com.lexmark.saperion.administration.GroupType>search()This method returns a search client for searching groups.SearchClient<com.lexmark.saperion.administration.GroupType>This method returns a search client for searching deleted groups.
-
Constructor Details
-
GroupManagementServiceClientImpl
public GroupManagementServiceClientImpl(com.lexmark.saperion.administration.GroupManagementService groupManagementService)
-
-
Method Details
-
resolve
public GroupClient resolve(com.lexmark.saperion.administration.GroupReferenceType reference) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:GroupManagementServiceClientThis method returns an administration client for the group with the given reference.- Specified by:
resolvein interfaceGroupManagementServiceClient- Parameters:
reference- a reference to the group to administrate- Returns:
- an administration client for the group with the given reference
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
resolveName
public GroupClient resolveName(String groupName) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:GroupManagementServiceClientThis method returns an administration client for the group with the given name.- Specified by:
resolveNamein interfaceGroupManagementServiceClient- Parameters:
groupName- the name of the group to administrate- Returns:
- an administration client for the group with the given name
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
search
public SearchClient<com.lexmark.saperion.administration.GroupType> search() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:GroupManagementServiceClientThis method returns a search client for searching groups.- Specified by:
searchin interfaceGroupManagementServiceClient- Returns:
- a search client for searching groups
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
searchDeleted
public SearchClient<com.lexmark.saperion.administration.GroupType> searchDeleted() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:GroupManagementServiceClientThis method returns a search client for searching deleted groups.- Specified by:
searchDeletedin interfaceGroupManagementServiceClient- Returns:
- a search client for searching deleted groups
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
createGroup
public com.lexmark.saperion.administration.GroupReferenceType createGroup(com.lexmark.saperion.administration.GroupPropertiesType properties) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:GroupManagementServiceClientThis method creates a new group with the given properties and returns a reference to it.- Specified by:
createGroupin interfaceGroupManagementServiceClient- Parameters:
properties- the properties of the group- Returns:
- the reference to the new group
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
createGroup
public com.lexmark.saperion.administration.GroupReferenceType createGroup(String shortName, String fullName, String description) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:GroupManagementServiceClientThis method creates a new group with the given properties and returns a reference to it.- Specified by:
createGroupin interfaceGroupManagementServiceClient- Parameters:
shortName- the short name (display name) of the new groupfullName- the full name of the new groupdescription- a description of the new group- Returns:
- a reference to group created
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
createGroup
public com.lexmark.saperion.administration.GroupReferenceType createGroup(String shortName) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:GroupManagementServiceClientThis method is a shorthand toGroupManagementServiceClient.createGroup(String, String, String). It is equivalent to callingcreateGroup(shortName, shortName, "").- Specified by:
createGroupin interfaceGroupManagementServiceClient- Parameters:
shortName- the short name (display name) and full name of the new group- Returns:
- a reference to group created
- Throws:
com.lexmark.saperion.exceptions.EcmException
-