public interface Ticket extends AuditableObject
| Modifier and Type | Field and Description |
|---|---|
static String |
PRIVILEGE_FREEBUSY |
static String |
PRIVILEGE_READ |
static String |
PRIVILEGE_WRITE |
static String |
TIMEOUT_INFINITE |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Ticket t) |
Date |
getCreated() |
Item |
getItem() |
String |
getKey() |
User |
getOwner() |
Set<String> |
getPrivileges() |
String |
getTimeout() |
TicketType |
getType()
Returns the ticket type if the ticket's privileges match up
with one of the predefined types, or
null
otherwise. |
boolean |
hasTimedOut() |
boolean |
isFreeBusy() |
boolean |
isGranted(Item item)
Determines whether or not the ticket is granted on the given
item or one of its ancestors.
|
boolean |
isReadOnly() |
boolean |
isReadWrite() |
void |
setCreated(Date created) |
void |
setItem(Item item) |
void |
setKey(String key) |
void |
setOwner(User owner) |
void |
setPrivileges(Set<String> privileges) |
void |
setTimeout(Integer timeout) |
void |
setTimeout(String timeout) |
getCreationDate, getEntityTag, getFactory, getModifiedDate, updateTimestampstatic final String TIMEOUT_INFINITE
static final String PRIVILEGE_READ
static final String PRIVILEGE_WRITE
static final String PRIVILEGE_FREEBUSY
String getKey()
void setKey(String key)
String getTimeout()
void setTimeout(String timeout)
void setTimeout(Integer timeout)
TicketType getType()
null
otherwise.Date getCreated()
void setCreated(Date created)
User getOwner()
void setOwner(User owner)
boolean hasTimedOut()
boolean isGranted(Item item)
boolean isReadOnly()
boolean isReadWrite()
boolean isFreeBusy()
int compareTo(Ticket t)
Item getItem()
void setItem(Item item)
Copyright © 2012–2018 1&1. All rights reserved.