public final class WebMiscUtil extends Object
Modifier and Type | Method and Description |
---|---|
static DropDownChoicePanel |
createActivationStatusPanel(String id,
org.apache.wicket.model.IModel<ActivationStatusType> model,
org.apache.wicket.Component component) |
static Collection<ObjectDelta<? extends ObjectType>> |
createDeltaCollection(ObjectDelta<? extends ObjectType>... deltas) |
static <T extends Enum> |
createLocalizedModelForEnum(T value,
org.apache.wicket.Component comp) |
static PolyStringType |
createPolyFromOrigString(String str) |
static <T extends Enum> |
createReadonlyModelFromEnum(Class<T> type) |
static void |
encryptCredentials(ObjectDelta delta,
boolean encrypt,
MidPointApplication app) |
static void |
encryptCredentials(PrismObject object,
boolean encrypt,
MidPointApplication app) |
static void |
encryptProtectedString(ProtectedStringType string,
boolean encrypt,
MidPointApplication app) |
static String |
formatDate(Date date) |
static String |
formatDate(String format,
Date date) |
static <T> T |
getContainerValue(PrismContainerValue object,
QName containerName,
Class<T> type) |
static Class |
getHomePage() |
static Locale |
getLocaleFromString(String localeString) |
static String |
getName(ObjectType object) |
static String |
getName(PrismObject object) |
static String |
getOrigStringFromPoly(PolyStringType str) |
static <T extends Selectable> |
getSelectedData(TablePanel panel) |
static <T> T |
getValue(PrismContainer object,
QName propertyName,
Class<T> type) |
static <T> T |
getValue(PrismContainerValue object,
QName propertyName,
Class<T> type) |
static boolean |
isActivationEnabled(PrismObject object) |
static boolean |
isAuthorized(String... action) |
static boolean |
isSuccessOrHandledError(OperationResult result) |
static Integer |
safeLongToInteger(Long l) |
static boolean |
showResultInPage(OperationResult result) |
public static boolean isAuthorized(String... action)
public static Class getHomePage()
public static <T extends Enum> org.apache.wicket.model.IModel<String> createLocalizedModelForEnum(T value, org.apache.wicket.Component comp)
public static <T extends Enum> org.apache.wicket.model.IModel<List<T>> createReadonlyModelFromEnum(Class<T> type)
public static DropDownChoicePanel createActivationStatusPanel(String id, org.apache.wicket.model.IModel<ActivationStatusType> model, org.apache.wicket.Component component)
public static String getName(ObjectType object)
public static String getName(PrismObject object)
public static PolyStringType createPolyFromOrigString(String str)
public static String getOrigStringFromPoly(PolyStringType str)
public static <T> T getValue(PrismContainerValue object, QName propertyName, Class<T> type)
public static <T> T getContainerValue(PrismContainerValue object, QName containerName, Class<T> type)
public static <T> T getValue(PrismContainer object, QName propertyName, Class<T> type)
public static void encryptCredentials(ObjectDelta delta, boolean encrypt, MidPointApplication app)
public static void encryptCredentials(PrismObject object, boolean encrypt, MidPointApplication app)
public static void encryptProtectedString(ProtectedStringType string, boolean encrypt, MidPointApplication app)
public static <T extends Selectable> List<T> getSelectedData(TablePanel panel)
public static Collection<ObjectDelta<? extends ObjectType>> createDeltaCollection(ObjectDelta<? extends ObjectType>... deltas)
public static boolean showResultInPage(OperationResult result)
public static boolean isActivationEnabled(PrismObject object)
public static boolean isSuccessOrHandledError(OperationResult result)
Copyright © 2013 evolveum. All rights reserved.