|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Service is an "abstract" interface and handles all generic aspects of a service.
Field Summary |
Type | Field |
---|---|
static int |
CATEGORY_MASTER
|
static int |
CATEGORY_SERVICE
|
static int |
CATEGORY_USER_HOME
|
static int |
TYPEID
The type id of this class. |
static java.lang.String |
TYPENAME
The constant class type identifier |
Method Summary |
Type | Method |
---|---|
long |
getAreaId()
Gets the areaId property (long) value. |
int |
getCategory()
Get the Folder category. |
int |
getCost()
get cost for the Service |
java.lang.String |
getDescription()
|
Group[] |
getGroups()
|
Folder |
getParent()
Get the parent folder of this service. |
java.lang.String |
getPrimaryAudio()
Gets the primary audio property (String) value. |
java.lang.String |
getPrimaryImage()
Gets the primary image property (String) value. |
java.lang.String |
getSecondaryAudio()
Gets the secondary audio property (String) value. |
java.lang.String |
getSecondaryImage()
Gets the secondary image property (String) value. |
int |
getSequenceNo()
|
java.lang.String |
getShortName()
Gets the shortName for a Service. |
Transformer |
getTransformer(Device device)
A service can override a device default transformer. |
java.lang.String |
getURL()
|
java.lang.String |
getURLPathParameter()
Returns the URL to the Service. |
User |
getUserOwner()
|
void |
invoke(ServiceContext context)
Invokes a Service. |
boolean |
isValid()
|
boolean |
isViewCustomizable()
Gets the view customizability status |
boolean |
isVisible()
|
void |
removeAllGroups()
Remove the current service from all groups it is belongs to |
void |
setAreaId(long areaId)
Sets the areaId property (long) value. |
void |
setCategory(int category)
Set the Folder category. |
void |
setCost(int cost)
Set cost for the Service. |
void |
setDescription(java.lang.String description)
|
void |
setGroups(Group[] groups)
|
void |
setParent(Folder parent)
Move this service into a folder. |
void |
setPrimaryAudio(java.lang.String primaryAudio)
Sets the primary audio property (String) value. |
void |
setPrimaryImage(java.lang.String primaryImage)
Sets the primary image property (String) value. |
void |
setSecondaryAudio(java.lang.String secondaryAudio)
Sets the secondary audio property (String) value. |
void |
setSecondaryImage(java.lang.String secondaryImage)
Sets the secondary image property (String) value. |
void |
setSequenceNo(int sequenceNo)
Sets the sequence number for ordering. |
void |
setShortName(java.lang.String shortName)
Sets the shortName for a Service. |
void |
setUserOwner(User owner)
Set the owner of this service. |
void |
setValid(boolean valid)
Allow the administrator to set a service to valid or invalid. |
void |
setViewCustomizable(boolean value)
Sets the view customizability status |
void |
setVisible(boolean visible)
Allow the administrator to set the visibility of a service. |
Methods inherited from interface oracle.panama.model.ModelObject |
delete, getCreatedDate, getId, getLastModifiedDate, getName, getTypeId,
getTypeName, isSystem, setName,
setSystem, undoAll |
Methods inherited from interface oracle.panama.model.XMLObject |
setXML, toXML |
Field Detail |
public static final java.lang.String TYPENAME
public static final int TYPEID
public static final int CATEGORY_SERVICE
public static final int CATEGORY_MASTER
public static final int CATEGORY_USER_HOME
Method Detail |
public void setDescription(java.lang.String description)
description
- the description text.public java.lang.String getDescription()
public java.lang.String getURL()
public java.lang.String getURLPathParameter()
NB. A service in this context can be an external link.
public int getSequenceNo()
public void setSequenceNo(int sequenceNo)
seqno
- the sequence number.public boolean isVisible()
public void setVisible(boolean visible)
visible
- true if visible otherwise false.public boolean isValid()
public void setValid(boolean valid)
valid
- true if valid or false if not.public User getUserOwner()
public void setUserOwner(User owner)
user
- the owner.public Folder getParent()
public void setParent(Folder parent)
folder
- the Folder to put this service into, a null folder is equals
to the root folder (no parent).public java.lang.String getShortName()
public void setShortName(java.lang.String shortName)
shortName
- The new shortName for this Servicepublic int getCost()
public void setCost(int cost)
cost
- the cost in any unitpublic long getAreaId()
setAreaId(long)
public void setAreaId(long areaId)
aAreaId
- The new value for the property.getAreaId()
public void invoke(ServiceContext context) throws java.lang.Exception
context
- the ServiceContext.java.lang.Exception
- when any error occurs.public Transformer getTransformer(Device device)
public void setViewCustomizable(boolean value)
value
- The view customizability statuspublic boolean isViewCustomizable()
public java.lang.String getPrimaryImage()
public void setPrimaryImage(java.lang.String primaryImage)
public java.lang.String getSecondaryImage()
public void setSecondaryImage(java.lang.String secondaryImage)
public java.lang.String getPrimaryAudio()
public void setPrimaryAudio(java.lang.String primaryAudio)
public java.lang.String getSecondaryAudio()
public void setSecondaryAudio(java.lang.String secondaryAudio)
public Group[] getGroups()
setGroups(oracle.panama.model.Group[])
public void setGroups(Group[] groups)
groups
- the list of groups the service belongs togetGroups()
public void removeAllGroups()
setGroups(oracle.panama.model.Group[])
public int getCategory()
setCategory(int)
public void setCategory(int category)
category
- The Folder categorygetCategory()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |