public interface SignatureDao
Modifier and Type | Method and Description |
---|---|
void |
deleteSignature(Signature signature)
Deletes a
Signature permanently |
Signature |
getLatestSignatureForUserAndScopeRef(Integer userId,
Integer scopeId,
Integer refId,
boolean includeRevoked)
Gets the latest
Signature (by DomainObject.getCreatedDate() ) for a given scope/ref and user. |
Collection<Signature> |
getLatestSignaturesForUsersAndScopeRef(List<Integer> userIds,
Integer scopeId,
Integer refId,
boolean includeRevoked)
Obtains the latest
Signature (by DomainObject.getCreatedDate() ) for each user for the given scope
and ref. |
List<Signature> |
getSignaturesForScopeRef(Integer scopeId,
Integer refId,
boolean includeRevoked)
Gets
Signature s for a given scope/ref |
Signature |
saveSignature(Signature signature)
Persists a
Signature . |
List<Signature> getSignaturesForScopeRef(Integer scopeId, Integer refId, boolean includeRevoked)
Signature
s for a given scope/refscopeId
- scope of the objectrefId
- refId of the objectincludeRevoked
- Whether or not to include revoked signatures (see Signature.getIsRevoked()
)Signature
s for the given objectSignature getLatestSignatureForUserAndScopeRef(Integer userId, Integer scopeId, Integer refId, boolean includeRevoked)
Signature
(by DomainObject.getCreatedDate()
) for a given scope/ref and user. Returns
null if not foundscopeId
- scope of the objectrefId
- refId of the objectincludeRevoked
- Whether or not to include revoked signatures (see Signature.getIsRevoked()
)Signature
s for the given objectCollection<Signature> getLatestSignaturesForUsersAndScopeRef(List<Integer> userIds, Integer scopeId, Integer refId, boolean includeRevoked)
Signature
(by DomainObject.getCreatedDate()
) for each user for the given scope
and ref. Users that have no matching Signature
will not be associated with any returned Signature
s.Signature saveSignature(Signature signature)
Signature
.signature
- The Signature
to saveCopyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.