|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.BasicItem<D>
org.proteios.core.OwnedItem<D>
org.proteios.core.SharedItem<D>
org.proteios.core.CommonItem<ClientData>
org.proteios.core.Client
public class Client
This class represents a registered client application. Registering a client application has some benefits:
| Field Summary | |
|---|---|
static int |
MAX_EXTERNAL_ID_LENGTH
The maximum length of the external id variable that can be stored in the database. |
static Item |
TYPE
The type of item represented by this class. |
| Fields inherited from interface org.proteios.core.Nameable |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Method Summary | |
|---|---|
static Client |
getByExternalId(DbControl dc,
String externalId)
Get a Client item when you know the external ID. |
String |
getExternalId()
Get the external id for this Client item. |
static ItemQuery<Client> |
getQuery()
Get a new query object for this class. |
Item |
getType()
Get the type of item represented by the object. |
boolean |
isUsed()
Always return FALSE. |
void |
setExternalId(String externalId)
Set the external id for this Client item. |
| Methods inherited from class org.proteios.core.CommonItem |
|---|
getDescription, getName, isRemoved, setDescription, setName, setRemoved |
| Methods inherited from class org.proteios.core.SharedItem |
|---|
getItemKey, getProjectKey, isShared, setItemKey, setProjectKey |
| Methods inherited from class org.proteios.core.OwnedItem |
|---|
getOwner, setOwner |
| Methods inherited from class org.proteios.core.BasicItem |
|---|
checkPermission, equals, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.proteios.core.Identifiable |
|---|
getId, getVersion |
| Methods inherited from interface org.proteios.core.AccessControlled |
|---|
checkPermission, hasPermission |
| Methods inherited from interface org.proteios.core.Ownable |
|---|
getOwner, setOwner |
| Field Detail |
|---|
public static final Item TYPE
Item.CLIENT,
getType()public static final int MAX_EXTERNAL_ID_LENGTH
setExternalId(String) method to avoid exceptions.
| Method Detail |
|---|
public static Client getByExternalId(DbControl dc,
String externalId)
throws ItemNotFoundException,
PermissionDeniedException,
BaseException
Client item when you know the external ID.
dc - The DbControl which will be used for permission
checking and database access.externalId - The external id of the item to load
Client item
ItemNotFoundException - If an item with the specified ID is not
found
PermissionDeniedException - If the logged in user doesn't have
READ permission for the item
BaseException - If there is another errorpublic static ItemQuery<Client> getQuery()
ItemQuery objectpublic Item getType()
IdentifiableItem enumeration.
public boolean isUsed()
throws BaseException
isUsed in class BasicItem<ClientData>BaseExceptionpublic String getExternalId()
Client item.
public void setExternalId(String externalId)
throws PermissionDeniedException,
InvalidDataException
Client item. The value cannot
be null and must not be longer than the value specified by the
MAX_EXTERNAL_ID_LENGTH constant.
externalId - The new external id for this item
PermissionDeniedException - If the logged in user doesn't have
write permission
InvalidDataException - If the new value is null or longer than
MAX_EXTERNAL_ID_LENGTH
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||