|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nim.Application
public class Application
The data object that represent the Application data from the BrandService. It provides the information and settings for an application for a specific user. Other than activation, this object is not designed for changes. Application should be extremely careful when adding/removing the application preferences. (It is recommended to control it within a synchronized block. Otherwise, we may ran into infinite loop problem due to simultaneous access to a HashMap (see Sun's JavaDoc for details))
Brand
,
BrandService
Field Summary | |
---|---|
protected java.lang.String |
_appId
Application ID. |
protected java.util.Map<java.lang.String,java.lang.String> |
_appPrefs
Any personal preferences the current user has for this application. |
protected java.lang.String |
_description
Application description. |
protected java.lang.String |
_newObjectURI
The URL to create a new object (new contact, email, event, etc), if any. |
protected boolean |
_requiresActivation
Whether this application requires some sort of activation or can be used by the user right away. |
protected java.lang.String |
_settingsURI
The URL of the settings page for this app, if any. |
Constructor Summary | |
---|---|
Application(java.lang.String appId)
Minimal constructor. |
|
Application(java.lang.String appId,
java.lang.String description,
boolean activation,
java.lang.String settingsURI,
java.lang.String newURI,
java.util.Map<java.lang.String,java.lang.String> prefs)
Complete application constructor. |
Method Summary | |
---|---|
java.lang.String |
getAppId()
Get the application ID. |
java.lang.String |
getDescription()
Get the application description. |
java.lang.String |
getNewObjectURI()
Get the URI of the new object page for the application. |
java.lang.String |
getPreference(java.lang.String prefName)
Get a user's preference for this application. |
java.lang.String |
getSettingsURI()
Get the URI of the settings page for the application. |
boolean |
isActivated()
Returns whether this application is activated and ready to use. |
boolean |
requiresActivation()
Returns whether this application requires activation. |
java.lang.String |
toString()
Return a string representation of the content of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String _appId
protected final java.lang.String _description
protected final boolean _requiresActivation
protected final java.lang.String _settingsURI
protected final java.lang.String _newObjectURI
protected final java.util.Map<java.lang.String,java.lang.String> _appPrefs
Constructor Detail |
---|
public Application(java.lang.String appId, java.lang.String description, boolean activation, java.lang.String settingsURI, java.lang.String newURI, java.util.Map<java.lang.String,java.lang.String> prefs)
appId
- application IDdescription
- application descriptionactivation
- requires activation boolean flagsettingsURI
- the URL to the settings page for this appnewURI
- the URL to the new object page for this appprefs
- user's personal preferences for this apppublic Application(java.lang.String appId)
appId
- the applicaiton IDMethod Detail |
---|
public boolean isActivated()
public java.lang.String getAppId()
public java.lang.String getDescription()
public boolean requiresActivation()
public java.lang.String getSettingsURI()
public java.lang.String getNewObjectURI()
public java.lang.String getPreference(java.lang.String prefName)
prefName
- the name of the user preference
public java.lang.String toString()
toString
in class java.lang.Object
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.