public class CoreDomainManager extends DomainManagerImpl
DomainManager
Constructor and Description |
---|
CoreDomainManager() |
CoreDomainManager(FdkSession session) |
Modifier and Type | Method and Description |
---|---|
protected FdkSessionImpl |
getConnectedSession()
Return the web service session.
|
Item |
getDefaultDomain(AttributeRequest[] attributes)
Returns the default
DOMAIN Item. |
protected boolean |
isWebServiceCall()
Returns
true if the current call was made from a web services
client. |
protected NamedValue[] |
login(FdkCredential c,
NamedValue[] options,
AttributeRequest[] userAttributes)
Internal login method used by web services login managers.
|
void |
referenceTypes(TypeReference ref)
Dummy web service method to create a reference to data types used
in the web services to insure that they are defined in the WSDL.
|
Item |
updateDomain(long id,
NamedValue[] def,
AttributeRequest[] attributes)
Updates a
DOMAIN Item. |
public CoreDomainManager()
public CoreDomainManager(FdkSession session)
public Item updateDomain(long id, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
DomainManager
DOMAIN
Item.id
- the ID of the DOMAIN
Item to updatedef
- the attributes to set:
- notation: {Attribute name, Attribute type}
- {Attributes.USER_WORKSPACES_ROOT, String}
- {Attributes.MOST_RECENT_DOCS_MAXITEMS, Integer}
- {Attributes.PERSONAL_WORKSPACES_ENABLED, Boolean}
- {Attributes.WORLD_GRANTS_ENABLED, Boolean}
- {Attributes.GROUP_CREATION_ACCESS_GROUP, Long}
- {Attributes.CREATE_WORKSPACE_REQUEST_ALLOWED,
Boolean}
- {Attributes.DEFAULT_WORKSPACE_ROLES, long[]}
- {Attributes.DEFAULT_GUARD_SECURITY_ROLES, long[]}
- {Attributes.GLOBAL_AUDIT_TYPE_LIST, Long}
- {Attributes.GLOBAL_AUDIT_HISTORY_EXPIRATION_PERIOD, Long}
attributes
- the attributes to retrieve for the returned
DOMAIN
Item, or nullFdkException
- if the operation failspublic Item getDefaultDomain(AttributeRequest[] attributes) throws FdkException
DomainManager
DOMAIN
Item.attributes
- the attributes to retrieve for the returned
DOMAIN
Item, or nullFdkException
- if the operation fails.protected final boolean isWebServiceCall()
true
if the current call was made from a web services
client. This check can be made by any subclasses in order to determine
functionality and restrictions based on the originating call. This
feature should be used lightly and only where really necessary as
this is not an idea way of implementing business logic.public void referenceTypes(TypeReference ref)
protected final NamedValue[] login(FdkCredential c, NamedValue[] options, AttributeRequest[] userAttributes) throws FdkException
FdkException
protected final FdkSessionImpl getConnectedSession() throws FdkException
FdkException
Copyright © 2023. All rights reserved.