Class StandardAgreementService
- All Implemented Interfaces:
Serializable,AgreementService,wt.access.agreement.AgreementServiceSvr,wt.fc._NetFactor,NetFactor,wt.services.Manager
Use the newStandardAgreementService static factory method(s),
not the StandardAgreementService constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateAgreement(AgreementAttributes agreementAttributes, WTCollection authorizedObjects, WTCollection authorizedPrincipals, ObjectReference authorizationDocumentReference) Deprecated.As of release 10.0.createAuthorizationAgreement(AgreementAttributes agreementAttributes, WTCollection authorizedObjects, WTCollection authorizedPrincipals, ObjectReference authorizationDocumentReference) Creates an agreement object based on the required attributes and persists it.Methods inherited from class wt.services.StandardManager
getManagerService, getManagerStatus, getName, getStartupType, initialize, performShutdownProcess
-
Method Details
-
createAuthorizationAgreement
public ObjectReference createAuthorizationAgreement(AgreementAttributes agreementAttributes, WTCollection authorizedObjects, WTCollection authorizedPrincipals, ObjectReference authorizationDocumentReference) throws WTException, WTPropertyVetoException Creates an agreement object based on the required attributes and persists it. This API also associates the related authorized objects, authorized principals, and authorization document.The session user must be an agreement manager. The user must also have create permission for agreement objects and read permission for all of the associated authorized objects, principals, and document.
Supported API: true- Specified by:
createAuthorizationAgreementin interfaceAgreementService- Parameters:
agreementAttributes- The attributes to use in creating the agreement. This parameter is required (must not be null).authorizedObjects- The authorized objects to associate to this agreement. TheWTCollectionmust contain onlySecurityLabeledand/orAgreementAuthorizedObjectobjects. In order to specify version ranges for authorized objects, an AgreementAuthorizedObject must be used. See the Javadoc for:AgreementAuthorizedObject.newAgreementAuthorizedObject(WTReference,ObjectReference,String,String,Integer,Integer). Duplicates will be ignored. Conflicting version ranges for the same object will result in anAgreementCollectionException. This parameter may be null or empty.authorizedPrincipals- The authorized principals to associate to this agreement. TheWTCollectionmust contain onlyWTGroupand/orWTUserobjects. Any duplicates will be ignored. This parameter may be null or empty.authorizationDocumentReference- The authorization document to reference for this agreement. TheObjectReferencemust refer to aWTDocumentobject. This parameter may be null.- Returns:
- ObjectReference - A reference to the persisted agreement object
- Throws:
WTException- If any error occurs while creating and persisting the agreementWTPropertyVetoException- If any attributes specified are invalid
-
createAgreement
@Deprecated public AuthorizationAgreement createAgreement(AgreementAttributes agreementAttributes, WTCollection authorizedObjects, WTCollection authorizedPrincipals, ObjectReference authorizationDocumentReference) throws WTException, WTPropertyVetoException Deprecated.As of release 10.0. Replaced bycreateAuthorizationAgreement(AgreementAttributes,WTCollection,WTCollection,ObjectReference).Creates an agreement object based on the required attributes and persists it. This API also associates the related authorized objects, authorized principals, and authorization document.The session user must be an agreement manager. The user must also have create permission for agreement objects and read permission for all of the associated authorized objects, principals, and document.
Supported API: true- Specified by:
createAgreementin interfaceAgreementService- Parameters:
agreementAttributes- The attributes to use in creating the agreement. This parameter is required (must not be null).authorizedObjects- The authorized objects to associate to this agreement. TheWTCollectionmust contain onlySecurityLabeledand/orAgreementAuthorizedObjectobjects. In order to specify version ranges for authorized objects, an AgreementAuthorizedObject must be used. See the Javadoc for:AgreementAuthorizedObject.newAgreementAuthorizedObject(WTReference,ObjectReference,String,String,Integer,Integer). Duplicates will be ignored. Conflicting version ranges for the same object will result in anAgreementCollectionException. This parameter may be null or empty.authorizedPrincipals- The authorized principals to associate to this agreement. TheWTCollectionmust contain onlyWTGroupand/orWTUserobjects. Any duplicates will be ignored. This parameter may be null or empty.authorizationDocumentReference- The authorization document to reference for this agreement. TheObjectReferencemust refer to aWTDocumentobject. This parameter may be null.- Returns:
- AuthorizationAgreement - The persisted agreement object (null if the session user does not have read permission)
- Throws:
WTException- If any error occurs while creating and persisting the agreementWTPropertyVetoException- If any attributes specified are invalid
-