@ProviderType
public interface AssetCheckoutService
Modifier and Type | Method and Description |
---|---|
boolean |
canCheckIn(Asset asset)
Return a flag indicating whether the current user can check in the asset.
|
boolean |
canCheckIn(Asset asset,
Privilege[] privileges)
Return a flag indicating whether the current user can check in the asset.
|
boolean |
canCheckOut(Asset asset)
Return a flag indicating whether the current user can check out the asset.
|
boolean |
canCheckOut(Asset asset,
Privilege[] privileges)
Return a flag indicating whether the current user can check out the asset.
|
void |
checkIn(Asset asset)
Check in an asset.
|
void |
checkOut(Asset asset)
Check out an asset.
|
java.lang.String |
getCheckedOutBy(Asset asset)
Return the user who has checked out the asset.
|
boolean |
isCheckedOut(Asset asset)
Checks if this asset is checked out.
|
boolean canCheckOut(Asset asset)
asset
- Assettrue
if the asset can be checked out;
false
otherwisevoid checkOut(Asset asset) throws java.lang.IllegalStateException
asset
- Assetjava.lang.IllegalStateException
- if the asset is already checked out or cannot be checked out by the current user.boolean isCheckedOut(Asset asset)
asset
- Assettrue
if this asset is checked out.java.lang.String getCheckedOutBy(Asset asset)
asset
- Assetnull
if the asset is not checked outboolean canCheckIn(Asset asset)
asset
- Assettrue
if the asset can be checked in;
false
otherwiseboolean canCheckIn(Asset asset, Privilege[] privileges)
asset
- Assetprivileges
- Privileges arraytrue
if the asset can be checked in;
false
otherwiseboolean canCheckOut(Asset asset, Privilege[] privileges)
asset
- Assetprivileges
- Privileges arraytrue
if the asset can be checked out;
false
otherwisevoid checkIn(Asset asset) throws java.lang.IllegalStateException
asset
- Assetjava.lang.IllegalStateException
- if the asset is not checked out or cannot be checked in by the current user.Copyright © 2010 - 2020 Adobe. All Rights Reserved