|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.common.FQN
org.jboss.portal.server.ServerRegistrationID
public class ServerRegistrationID
Abstraction of a unique identifier for registered meta data.
| Nested Class Summary | |
|---|---|
static class |
ServerRegistrationID.Type
|
| Field Summary | |
|---|---|
static ServerRegistrationID.Type |
TYPE_LAYOUT
Type for a registered Portal Layout. |
static ServerRegistrationID.Type |
TYPE_THEME
type for a registered Portal Theme. |
| Fields inherited from class org.jboss.portal.common.FQN |
|---|
names |
| Method Summary | |
|---|---|
static ServerRegistrationID |
createID(ServerRegistrationID.Type type,
java.lang.String[] names)
Create a new registration id based on the provided type and names. |
static ServerRegistrationID |
createPortalLayoutID(java.lang.String appName,
java.lang.String name)
convenience method to create a new registration id for a layout. |
static ServerRegistrationID |
createPortalThemeID(java.lang.String appName,
java.lang.String name)
convenience method to create a new registration id for a theme. |
boolean |
equals(java.lang.Object obj)
|
ServerRegistrationID.Type |
getType()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class org.jboss.portal.common.FQN |
|---|
getName, isChildOf, size, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ServerRegistrationID.Type TYPE_THEME
public static final ServerRegistrationID.Type TYPE_LAYOUT
| Method Detail |
|---|
public static ServerRegistrationID createID(ServerRegistrationID.Type type,
java.lang.String[] names)
type - the type of registration to create (TYPE_THEME or TYPE_LAYOUT)names - an array of names that together build a unique id
public java.lang.String toString()
toString in class FQN
public static ServerRegistrationID createPortalThemeID(java.lang.String appName,
java.lang.String name)
throws java.lang.IllegalArgumentException
appName - the name of the portal web application that contains the themename - the name of the theme
appName
and name
java.lang.IllegalArgumentException - if any of the provided paramter values are nullcreateID(org.jboss.portal.server.ServerRegistrationID.Type, java.lang.String[]),
TYPE_THEME
public static ServerRegistrationID createPortalLayoutID(java.lang.String appName,
java.lang.String name)
throws java.lang.IllegalArgumentException
appName - the name of the portal web application that contains the layoutname - the name of the layout
appName
and name
java.lang.IllegalArgumentException - if any of the provided parameter values are nullcreateID(org.jboss.portal.server.ServerRegistrationID.Type, java.lang.String[]),
TYPE_LAYOUTpublic ServerRegistrationID.Type getType()
public boolean equals(java.lang.Object obj)
equals in class FQNpublic int hashCode()
hashCode in class FQN
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||